2012年7月1日

默认构造函数

摘要: #include using namespace std;class CTest {public: CTest(void) { cout main.cpp1>main.cpp(16): warning C4930: 'CTest t2(void)': prototyped function not called (was a variable definition intended?)1> Constructor.vcxproj -> Constructor.exe这句话与函数有关,看来编译器是把 line 16作为一个函数声明的。 阅读全文

posted @ 2012-07-01 17:21 FlowingCloud 阅读(144) 评论(0) 推荐(0) 编辑

导航