sort by name, surname, number,

hy everyone!

I have a text file containing the names and surnames of enrollment numbers and grades of students
(looks like this:
RIKI Rikic E2345678 10
JUPI jupic E1232345 9
  Etc ......)
 
I'm interested in sorting by name and surname, registration number and grade.My example:
 
struct student {
string name;
string surname;
string enrollment;
int grade;
};
 
and in the main program
int main () {
Student STUDENT;
 
/ / Code to read a text file that I wrote so I have ...
 
switch ()
case '1 ': / / sort by name
case 2: / / by surname
Case 3 / / by enrollment
Case 4 / / by grade
 
 
this sort we are not going very well so if you can help. thanks in advance
Last edited on
Topic archived. No new replies allowed.