Guest User

Untitled

a guest
Jan 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. void showList(vector<Person> &persons)
  2. {
  3. showColumns();
  4.  
  5.  
  6. for (auto i = 0; i<persons.size(); ++i)
  7. {
  8. cout << left << setw(5) << i+1;
  9. cout << setw(15) << persons[i].nSignature;
  10. cout << setw(15) << persons[i].fName + " " + persons[i].lName;
  11. cout << right << setw(3) << fixed << setprecision(2) << persons[i].length << endl;
  12. if (i > 0 && (i - 1 % 20 == 0)){
  13. cout << "Press any key to show the next 20 entries..";
  14. cin.get();
  15. rensa();
  16. showColumns();
  17. }
  18. }
  19. cout << endl;
  20.  
  21. }
Add Comment
Please, Sign In to add comment