Hi how do you get a struct object to work inside a class object?
[code]
struct MyStruct{float x,float y};
class CMyClass
{
MyStruct ArrayStruct[3]; //this works
MyStruct *PointerStruct; //this doesn't
//...
};
[code]
I can put values in the first one, but once I've done ;
[code]
PointerStruct=new MyStruct[3];
[code]I still cant get any values into it.