09.05.2011, 18:37. Просмотров 464. Ответов 5
Всем добрый вечер! С днем победы! Тут такой вопрос.
есть задание
тут
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| 1. #include "stdafx.h"
2. #include <string>
3. #include <iostream>
4. using namespace std;
5.
6.
7.
8. int main( int argc, char *argv[ ] )
9. {
10. string x[3][3]={{"Putin","Ptu","1"},{"Medvedev","Vishka","2"}, {"Freeman","Srednee","2"}};
11. string y[3][3]={{"1","Roga i kopita"},{"2","Microsoft"},{"1","Cisco"}};
12.
13. cout.width(10);
14. cout<<"Familia"<<"\tObrazovanie"<<"\tPodrazdelenie"<<endl;
15. cout<<"\n";
16.
17. for(int i=0;i<3;i++)
18. {
19. for(int j=0;j<2;j++)
20. {
21. cout.width(10);
22. cout<<x[i][j]<<"\t";
23. }
24. cout<<y[i][1]<<"\n";
25. }
26.
27. return 0;
28. } |
|
что то придралась преподша, я тут немного запутался может как попроще можно сделать?