@rrrFer
Заблокирован
|
27.02.2011, 21:09
|
|
Stakhoff, C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| #include <iostream>
#include <conio.h>
using namespace std;
int main(){
const int H = 5;
const int W = 10;
char m[H][W];
for (int y = 0; y < H; ++y)
for (int x = 0; x < W; ++x)
m[y][x] = '.';
for (int g = 0; g < H; ++g)
m[g][0] = '|';
for (int y = 0; y < H; ++y){
for (int x = 0; x < W; ++x)
cout << m[y][x];
cout << endl;
}
_getch();
return 0;
} |
|
1
|