void init(Test **t) { *t = new Test; (*t)->x=2; (*t)->y=2; } int _tmain(int argc, _TCHAR* argv[]) { Test *a = NULL; init(&a); cout<<a->x<<endl; return 0; }
64,685
社区成员
250,491
社区内容
加载中
试试用AI创作助手写篇文章吧