问题:
If 'Test' is an ordinary class, is there any difference between: 如果“测试”是普通类,则之间是否有任何区别:
Test* test = new Test;
and 和
Test* test = new Test();
解决方案:
参考一: https://stackoom.com/question/2bKD/类型名称后面的括号是否与new有所不同参考二: https://oldbug.net/q/2bKD/Do-the-parentheses-after-the-type-name-make-a-difference-with-new
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4316716