Structures, will take a minute to answer!
I have a problem with one of my data pieces within my structure. Here, I have my structure:
Code:
struct StudentAccount
{
string name;
string major;
int admission_year;
int number;
string admission_semester;
string expected_graduation_year;
string expected_graduation_month;
};
and here I have my declaration of a variable:
Code:
account.expected_graduation_year = (account.admission_year + 4);
so why does this give me an invalid answer when I run my program? Thanks for the help in advance!