About pointer declaration and use in MFC

Pointer declaration and use

A *p;  //声明在.h中
p=new A(); //写在构造函数中
memset(p,0,sizeof(A));//写在构造函数中

Guess you like

Origin blog.csdn.net/qq_27538633/article/details/107656052