How do i label the vertical axis with numbers?

at the moment i have the horizontal axis labeled from 0 - 7.. but how do i label the vertical axis?
this is my code at the minute:

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
void displayBoard()
{
	cout << " 0   1   2   3   4   5   6   7\n";


	for(int row=0; row<8; row++)
	{
		for(int col=0; col<8; col++) 
		{
			cout << char(218) << char(196) << char (191) << " ";	//prints top
		}
		cout << '\n';
		for(int col=0; col<8; col++) 
		{
			//if(row%2!=0)			
				//{
				//if(col%2!=0)
				//{
					//cout<< char(179) << " " << char(179) << " " ;	//print out middle |  |
				//}
				//else
				//{
					cout << char(179) << board[row][col].appearance << char(179) << " " ;	//print out middle |  |
				//}
				//}
				//else
				//{
				//	if(col%2!=1)
				//{
				//	cout<< char(179) << " " << char(179) << " " ;	//print out middle |  |
				//}
				//else
				//{
				//	cout<< char(179) << pieces[0].appearance << char(179) << " " ;	//print out middle |  |
				//}
				//}
		}

		cout << '\n';


		for(int col=0; col<8; col++) 
		{
			cout << char(192) << char (196) << char(217) << " ";                //print out bottom |_|
		}
		cout << '\n';

	}
}


Topic archived. No new replies allowed.