The fix is simple: in the function Agrade1, wherevery you have &grade1 you need to remove the &, and wherever you have just grade1 you need to add a *:
grade1 -> *grade1
&grade1 -> grade1
Do...
Type: Posts; User: TheBigH
The fix is simple: in the function Agrade1, wherevery you have &grade1 you need to remove the &, and wherever you have just grade1 you need to add a *:
grade1 -> *grade1
&grade1 -> grade1
Do...
You pass the variable grade1 to the function Agrade1 as a pointer, but in the function you do not treat it as a pointer.