【发布时间】:2011-08-18 17:57:09
【问题描述】:
可能重复:
Do the parentheses after the type name make a difference with new?
以下代码执行了哪些操作:
Test *t1 = new Test; // there is no () after new Test;
是否有用户声明的默认构造函数?
这个呢:
Test *t2 = new Test(); // there is () after new Test;
【问题讨论】:
标签: c++