08-31-2015, 09:01 PM
|
#8
|
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: [University - C++ Programming] Help With Assignment (Very Basic Stuff)
Quote:
Originally Posted by sickufully
Hmm yeah that mostly seems to make sense to me. If the underlying multi-dimensional data type is CHAR_INFO[MAP_HEIGHT][MAP_WIDTH], does that mean the data type GUI_BUFFER is int int?
I can only assume the teacher wants a basic description of the underlying data type as this is only the first assignment and we haven't covered much of what's being asked on the assignment, hence why I'm finding this so difficult.
|
The size parameters are integers (specifically, constant unsigned ints), but that doesn't necessarily mean that the underlying datatype is. For example you could have a two-dimensional array of strings, ints, floats, etc.
If you want more detail on that piece:
In this case, I would say the data type is "CHAR_INFO[][]" to show that it's a two-dimensional datatype being used.
Last edited by Reincarnate; 08-31-2015 at 09:04 PM..
|
|
|