ICode9

精准搜索请尝试: 精确搜索
  • [C++]类名加个括号是什么东东2022-09-07 08:00:08

    先考考大家,下面的代码,编译得过吗? class MyClass { public: MyClass() { printf("MyClass\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { MyClass(); return 0; } 关键点在于,有一行代码是这样的MyClass()来个更难点的,下面的能编译过吗? tem

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有