SaveText.Ru

main
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. struct Sportsman
  7. {
  8.         string name;
  9.         int time;
  10. };
  11.  
  12. void GetNames(vector <Sportsman> &V); void Sort(vector <Sportsman> &V); void Print(vector <Sportsman> &V);
  13.  
  14. int main()
  15. {
  16.         setlocale(LC_ALL, "RUS");
  17.         vector <Sportsman> V;
  18.         GetNames(V);
  19.         Sort(V);
  20.         Print(V);
  21.         return 0;
  22. }

Share with your friends:

Print