View Single Post
Old 09-2-2015, 03:04 AM   #13
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)

So what you're saying FoJaR, is that the underlying data type of MAP_BUFFER is a 2D array of 20x30 ints?
I'm confused by what you mean here:
Quote:
Originally Posted by FoJaR View Post
MAP_BUFFER is a 2D array(with specific dimensions) of type ENTITY.
What is ENTITY? Is it the name of the array or the name of the MAP_BUFFER or...? And while on this, what exactly is MAP_BUFFER? Is that just a name for something or does it have some meaning behind it?
Code:
typedef entity_labels	ENTITY;
Basically, the question above can be answered if you can explain to me what each word in this line of code means (except using)
Code:
using MAP_BUFFER = ENTITY[MAP_HEIGHT][MAP_WIDTH];
This is my answer to question c) so far:
a. The underlying data type of MAP_BUFFER is ENTITY[MAP_HEIGHT][MAP_WIDTH] which shows that it is a two-dimensional array of ints.

Is this correct? If not, please guide me. I'm feeling quite dim-witted about all of this.

Also if someone could clear this up too.
Quote:
Originally Posted by sickufully
Although I'm not sure of the possible values that this data type can take. I'm assuming that the data type is ints and because of this, they can only hold numerical values. Can someone clarify if I'm heading in the right direction?
__________________

Last edited by sickufully; 09-2-2015 at 03:05 AM..
sickufully is offline   Reply With Quote