Initial typedef struct pointer (C/C++)
If I define a struct like below
typedef struct Coder {
float **data;
};
For my convenience, I also define a pointer to this struct
typedef Coder *AUTO;
and then I have to initial it by calling
AUTO myInstance = new Coder;
My problem appear when I call
myInstance->data= NULL;
The VC 2010 told me that there was no type specifier. I don't understand
what problem is here. Could you please help me?
No comments:
Post a Comment