1. Define the < operator for the student class and add the objects to a
std::list.
2. Call the
sort function of std::list and the list will be sorted.
3. Use std::cout to prompt the user, and std::cin to read the user input.
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
Offline 1,559 posts
since Jun 2005