Private variables are defined in the class.
PRIVATE:
Cdescarrayflat * iitemarray;
In constructl, Initialization is performed.
Void cpage: constructl (tint iitemnumber, tint Atype ){
Cdescarrayflat * iitemarray = new (eleave) cdescarrayflat (iitemnumber );
}
Then, in other classes, the pointer is always not found for a long time.
Finally, I finally found that a temporary variable was initialized, but the class variable was not initialized, but I forgot the same name. The main reason was that I was wrong and used to use the temporary variable, depressed, my time is wasted. I hope you will not make the same mistake.
Correct InitializationCodeYes:
Void cpage: constructl (tint iitemnumber, tint Atype ){
Iitemarray = new (eleave) cdescarrayflat (iitemnumber );
}
Oh, a big lesson. I used to make such a mistake before, but I found it all at once. The main reason is that I didn't want to think about it, so I got used to making logic dizzy.