Here is my code:
and in my cpp file I have in my main:Code:class GK{ public: struct General { char* str1; float i; }; };
the problem is:Code:GK* g; int main() { g->General.str1 = "hello world!"; return 0; }
error C2273: 'function-style cast' : illegal as right side of '->' operator
error C2228: left of '.aspect' must have class/struct/union type
I am using VC++6, can someone tell me whats wrong here?
Thanks