Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "iostream"
- #include "stdio.h"
- #include "iomanip"
- #include "locale.h"
- using namespace std;
- void circle()
- {
- for(int i = 0; i < 68; i++ )
- {
- cout << "-";
- if (i == 67)
- cout << endl;
- }
- }
- int main()
- {
- setlocale(LC_ALL, "RUS");
- char prim[256];
- float ball1,ball2,ball3;
- short int place1,place2,place3;
- char name1[20],name2[20],name3[20];
- char team1[3],team2[3],team3[3];
- cin >> name1 >> team1 >> ball1 >> place1;
- cin >> name2 >> team2 >> ball2 >> place2;
- cin >> name3 >> team3 >> ball3 >> place3;
- cin >> prim;
- cin.get();
- circle();
- cout << "| Ведомость спортивных состязаний | \n";
- circle();
- cout << "| Фамилия участника |Код команды |Количество балов |Место в итоге | \n";
- circle();
- cout << "| " << name1 << " |" << team1 << " |" << ball1 << " |" << place1 << " |\n";
- circle();
- cout << "| " << name2 << " |" << team2 << " |" << ball2 << " |" << place2 << " |\n";
- circle();
- cout << "| " << name3 << " |" << team3 << " |" << ball3 << " |" << place3 << " |\n";
- circle();
- cout << "|" << setw(60) << prim << " |\n" ;
- circle();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement