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
29
| #include<iostream>
#include<cstdlib>
#include<locale>
using namespace std;
void main()
{
setlocale(LC_ALL, "koi-8r");
int Csize = 10;
int Ssize = 10;
const char Sdb[10][10] = {
{'H','e','l','l','o','\0' },
{'u','s','e','r','\0'},
{'h','o','w','\0'},
{'y','o','u','\0'},
{'d','o','\0',},
{'y','o','u','\0'},
{'d','в','\0'} };
for ( int cont1 = 0; cont1 < Ssize; cont1++ )
{
for ( int cont2 = 0; Sdb[cont1][cont2] != '\0'; cont2++ )
cout << Sdb[cont1][cont2];
cout << " ";
}
cin.get();
} |