Hello everyone,
I have started learning CPP very recently. Sorry if the question is naive. Suppose I have indexes to the list of courses a student (from class of students)has failed. Now I want to sort that index list based on the student test results. How should I do that? here is an example: