GPA calcutor error

adfdsad
Last edited on
Please use [code] tags and specify what error you're getting and where you're getting it so we can actually help you.
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
else if((totalmark[i]>=90)&&(totalmark<95))

You forgot your [i] on the second part.
you got one of error but this program now working but that doesn't calculate GPA where i did mistake
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).
ok i have changed as you said but it still can calculate GPA ? where is the mistake ?
Topic archived. No new replies allowed.