摘要:
// Explicit.cpp : Defines the entry point for the console application. // 详解explicit关键字 #include "stdafx.h" #include #include using namespace std; int obj_cnt = 0; class Person { pub... 阅读全文
2012年6月3日 #
摘要:
// object_static_002.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include using namespace std;class C1 {public: C1() { cout << "c1构造" << endl; } C1( char* name ) { cout << name << "构造" << endl;} ~C1() { co 阅读全文