|
ok but could it be done in stuct basically i need to create and call a function called StudentData S2 = StudentData( S1 ); The function receive as a parameter a reference to the structure( prototyping will handle this) and will return a reference to the structure. Use couts and cins for getting data from the user. (For testing puposes, change the data in S1 so that the GPA is 3.5 and the Major is 2.)
if you can give me an example of this.
Thanks in advance.
|