24.07.2011, 01:38. Просмотров 399. Ответов 3
Здраствуйте я делаю крестики нолики и возник вопрос
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #include <iostream>
using namespace std;
void main ()
{
int pole [3][3]={0};
cout<<"_|_|_"<<endl;
cout<<"_|_|_"<<endl;
cout<<" | | "<<endl;
int coordinates;
cout<<"Coordinates (X):"<<endl;
cin>>coordinates;
if (coordinates = 1, 1)
cout<<"x"<<endl;
} |
|
Вопрос, как сделать, что бы X стоял в поле в этих координатах, тоесть х|_|_