Question: enum Major { COMPUTER_SCIENCE , COMPUTER_SECURITY_INFO_ASSURANCE , CYBER_SECURITY , ELECTRICAL_ENGINEERING , OTHER }; struct Name { string first ; string last ; char middleInitial ;
enum Major {COMPUTER_SCIENCE,
COMPUTER_SECURITY_INFO_ASSURANCE,
CYBER_SECURITY,
ELECTRICAL_ENGINEERING,
OTHER};
struct Name
{
string first;
string last;
char middleInitial;
};
struct StudentRecord
{
Name studentName;
Major major;
string email;
};
StudentRecord student12;
Suppose you are student12. Show the C++ statements used to fill in all of your information for your StudentRecord.
Show how would you assign the third letter from the email field to a local char variable called myChar.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
