help on an excersise

Hello guys!Nice to meet you!
I doing an excersise at c++ and im looking for a little help.
i Have this table that is for a pacman game,and i want to add # at the edges,something like borders.
This is the existing map

1
2
3
4
5
6
7
8
9
10
11
12
13
  void PrintTable(void)
{
	int i,j;

	for (i=0;i<ROWS;i++)
	{
		for (j=0;j<COLUMNS;j++)
		{
			cout << table[i][j] <<" ";
		}
		cout << endl;
	}
}

thanks
look at this
1
2
3
4
#######
#     #
#     #
####### 


you put # in the whole first and last row, but also at the begining and at the end of each row - other characters are spaces ' '

Last edited on
Topic archived. No new replies allowed.