I can't seem to figure out how to make an array of a user defined struct. I define my struct, like so:
The i try to allocate an array like this:Code:struct MYSTRUCT { float x; const char *Name; };
Several errors come up and I don't know what to do. I am also trying to define an array of structs/unions inside of another struct the same way... error also occurs there. HELP????Code:MYSTRUCT MyStruct1 = new MYSTRUCT[ 24 ];




Reply With Quote