Hi,I am printing out information and it works successfully, however i wish to print it lexicographically\alphabetically by comparing the last name strings stored into this vector that i am printing. How can I do this.
Here is my code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
void printStudent()
{
system("cls");
cout << "Records\n-------------------------\n\n";
//Loops through the vector that stores the student objects
for(int i = 0; i < students -> size(); i++)
{
students -> at(i).print();
}
system("Pause");
}