GPA calcutor error

May 9, 2011 at 11:16am
adfdsad
Last edited on May 14, 2011 at 4:32pm
May 9, 2011 at 1:18pm
Please use [code] tags and specify what error you're getting and where you're getting it so we can actually help you.
May 9, 2011 at 7:04pm
Error 1 error C2446: '<' : no conversion from 'int' to 'int *' c:\documents and settings\gul\desktop\project\project\project.cpp 50 project

Error 2 error C2040: '<' : 'int [7]' differs in levels of indirection from 'int' c:\documents and settings\gul\desktop\project\project\project.cpp 50 project



these my errors that i cant fix
May 9, 2011 at 7:06pm
else if((totalmark[i]>=90)&&(totalmark<95))

You forgot your [i] on the second part.
May 10, 2011 at 12:33pm
you got one of error but this program now working but that doesn't calculate GPA where i did mistake
May 10, 2011 at 12:46pm
Seems like all the lines with gpa[i] += ... were supposed to be gpa[i] = ... since you are setting the gpa score, not adding to the existing value (there is no existing value).
May 13, 2011 at 11:18am
ok i have changed as you said but it still can calculate GPA ? where is the mistake ?
Topic archived. No new replies allowed.