#include "stdafx.h" #include<iostream> #include<string> using namespace::std; int _tmain(int argc, _TCHAR* argv[]) { int *p=new int; cout<<*p<<endl; int *q=new int(); cout<<*q<<endl; system("pause"); return 0; }
class A; A* a = new A; 不调用构造函数 A* a = new A(); 调用了构造函数 依稀记得不知道在哪儿看到这种说法
65,187
社区成员
250,526
社区内容
加载中
试试用AI创作助手写篇文章吧