Monday, July 27, 2009

I got a struture in c++ as follows how can i get the students marks limited it betwwen 0and100 marks and?

how should sort them acsendig order by their total marks


and how shuld user to promt to number student in tthe class











struct student


{


char name[20];


int math;


int science;


int history;


int english;


int total;


}

I got a struture in c++ as follows how can i get the students marks limited it betwwen 0and100 marks and?
I understand basic C++, and I understand structures, but I'm not sure that I understand your question. Can you rephrase please? You want to have the students sorted by the value stored in the variable "total"? How are you storing the student data? Do you have a preset number of student structures already declared with variables that you declare manually, or are you using a linked list?


No comments:

Post a Comment