Alright I was wondering how do you use nested structures...
How would I define anything within the memory struct? And how would I use it in a vector?
//This is the struct for our CHARACTER abilities and what not
COORD pos; //Coordinates of the position of our CHARACTER
unsigned char dispChar; // The ASCII representation of the CHARACTER
unsigned char color; // The color (background and foreground) of the CHARACTER
int current_water; //This is a representation of how much water is contained
int water_need; //this tells us how much is needed
//when current_water reaches with in a few points of water_need then the thirsty will
//be defined as 'true'
bool thristy; //This defines the switch over from want to need
CHARACTER MEMORY mAdam;
I just dont know how to do it...
Because I would like to access the variables in the memory struct with the character struct, but also I would like to occassionally just access the Memory struct.
Should I maybe just try something else?
use the scope resolution operator ::
::variable_or_function means global scope otherwise something like this...
or in your example
MyCharMemItem.size_of_memory = 1000;
oh ah ok...well man thanks suddenly all my problems are resolved with a simple '::' heh thanks again.