View Single Post
Old 09-5-2015, 02:21 AM   #18
sickufully
Sir Krisk
FFR Veteran
 
sickufully's Avatar
 
Join Date: Dec 2007
Location: Vic, Australia
Posts: 930
Default Re: [University - C++ Programming] Help With Assignment (Very Basic Stuff)

Actually, I'm pretty sure I figured that question out. Some one in my class pointed out that you didn't need to have the const int's in the declaration and just use HANDLE hStdOut in its place.

Next question is:
Identify the code used to initialise the tileMap array. Modify this code so that the outer edges of the array (i.e., first and last row and column) are initialised to contain a WALL entity and all internal cells are initialised to be EMPTY.

I'm looking at this section of the code but again, I'm unsure as to what to change. Any pointers?
Code:
	* Initialise the tile map with appropriate ENTITY values
	*/
	MAP_BUFFER		tileMap;
	
	for (unsigned int row = 0; row < MAP_HEIGHT; row++)
	{
		for (unsigned int col = 0; col < MAP_WIDTH; col++)
		{
			tileMap[row][col] = EMPTY;
		}
	}
__________________
sickufully is offline   Reply With Quote