4-6. Rewrite the Student_info structure to calculate the grades immediately and store only the final grade.
What I proceed:-
I doubt that data structure can 'hold' function or expression, so I give a look on net to check out, it seems, the tutorial(on net) just show that structure used for declaring variable ONLY,
So, I try declare a variable using expression(double a = b + c), it seems to be not working too.[error : 'Student_info::final' cannot appear in a constant-expression.]
so, how can I told a function "to calculate the grades immediately and store only the final grade" ? are there any 'secret' way?
btw, I included the attachment in compressed file so that you can see the code.
thnx 4 read, hope anyone can give a hand..