08-31-2015, 06:01 PM
|
#5
|
|
Sir Krisk
Join Date: Dec 2007
Location: Vic, Australia
Posts: 930
|
Re: [University - C++ Programming] Help With Assignment (Very Basic Stuff)
Alright so since I'm up at this ungodly hour, I'm gonna try and smash as much of this out as I can.
a) So for the GUI_BUFFER data type, the answer would be const unsigned int? The only way I got this was the fact that [MAP_HEIGHT] & [MAP_WIDTH] are integers and they're the attributes of CHAR_INFO. Or is the answer CHAR_INFO? Or am I still completely wrong? Gahhh this is so confusing. As for where it's declared, I'm going to go with in the initialization list. I still don't understand what is meant by underlying data type? This is what I have for the second half of the question: The keyword using helps improve readability and structure of the code and is also useful when creating templates as typedef cannot be used in templates. Is there anything else worth mentioning about the difference between the keywords using and typedef cause I can't seem to find much.
b) working on it.
Quote:
Originally Posted by Reincarnate
Personally, I think using aliases like that is bad practice, but that's another story.
|
You should take it up with my teacher 
__________________

Last edited by sickufully; 08-31-2015 at 06:01 PM..
|
|
|