Advertisement
Guest User

Kayla The Jerk

a guest
Sep 22nd, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. while (inputFile >> student)
  2.  
  3.  
  4. {
  5. if(student[0] < lowest)
  6. {
  7. lowest = student[0];
  8. first = student;
  9. cout << "First " << student << endl;
  10. }
  11. if (student[0] > highest)
  12. {
  13. highest = student[0];
  14. last = student;
  15. cout << "Last " << student << endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement