Advertisement
Mr_D3a1h

Untitled

Feb 14th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "iostream"
  3. #include "stdio.h"
  4. #include "iomanip"
  5. #include "locale.h"
  6. using namespace std;
  7. void circle()
  8. {
  9.     for(int i = 0; i < 68; i++ )
  10.     {
  11.         cout << "-";
  12.         if (i == 67)
  13.             cout << endl;
  14.     }
  15. }
  16. int main()
  17. {
  18.     setlocale(LC_ALL, "RUS");
  19.     char prim[256];
  20.     float ball1,ball2,ball3;
  21.     short int place1,place2,place3;
  22.     char name1[20],name2[20],name3[20];
  23.     char team1[3],team2[3],team3[3];
  24.     cin >> name1 >> team1 >> ball1 >> place1;
  25.     cin >> name2 >> team2 >> ball2 >> place2;
  26.     cin >> name3 >> team3 >> ball3 >> place3;
  27.     cin >> prim;
  28.     cin.get();
  29.    
  30.     circle();
  31.     cout << "| Ведомость спортивных состязаний                                  | \n";
  32.     circle();
  33.    
  34.    
  35.     cout << "| Фамилия участника |Код команды  |Количество балов |Место в итоге | \n";
  36.     circle();
  37.    
  38.     cout << "| " << name1 << "          |" << team1 << "            |" << ball1 << "            |" << place1 << "             |\n";
  39.     circle();
  40.     cout << "| " << name2 << "            |" << team2 << "            |" << ball2 << "            |" << place2 << "             |\n";
  41.     circle();
  42.     cout << "| " << name3 << "         |" << team3 << "            |" << ball3 << "            |" << place3 << "             |\n";
  43.     circle();
  44.     cout << "|" << setw(60) << prim << "                      |\n" ;
  45.     circle();
  46.     return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement