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 30 31 32 33 34 35
|
#include <iostream>
#include <cmath>
using namespace std;
char you = '^';
char z = '*';
char x = ' ';
char brdray [8] [8]= { {z,z,z,z,z,z,z,z} ,{z,x,x,x,x,x,x,z} ,{z,x,x,x,x,x,x,z},
{z,x,x,x,x,x,x,z} ,{z,x,x,x,x,x,x,z} ,{z,x,x,x,x,x,x,z},
{z,x,x,x,x,x,x,z}, {z,z,z,z,z,z,z,z} };
void getboard();
int main ()
{
getboard ();
return 0;
}
void getboard()
{
for (int a = 0;a<8;a++)
{
for (int b =0;b<8;b++)
cout << brdray [a][b]<<endl;
}
}
|