View Single Post
Old 12-05-2006, 11:28 AM   #3 (permalink)
joelw
Code Monkey
 
Join Date: Sep 2006
Posts: 36
joelw is on a distinguished road
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.
joelw is offline   Reply With Quote