Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (inputFile >> student)
- {
- if(student[0] < lowest)
- {
- lowest = student[0];
- first = student;
- cout << "First " << student << endl;
- }
- if (student[0] > highest)
- {
- highest = student[0];
- last = student;
- cout << "Last " << student << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement