Hello
I just started working with dev c++ and computer languages at all because of my course
Now, could you please help with adding a function of ranking every student's score?
I already did average, total and now I just need it to show which rank belongs to each student. It doesn't have to be in ascending or descending order, instead simply showing which rank is whose based on the total value.
if(stdNum >= MAX_PRIME_NUM){
MessageBox(hwnd, "The number of students is out of the storage range.", "Arrangement grade processing.", MB_OK);
return;
}
}
You already have the student information in an array: stdScore.
Simply sort it on score.
PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.