庄生晓梦

庄生晓梦迷蝴蝶

博客园 首页 新随笔 联系 订阅 管理

2012年6月3日 #

摘要: // 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... 阅读全文
posted @ 2012-06-03 21:43 qwop 阅读(536) 评论(0) 推荐(0) 编辑

摘要: // 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 阅读全文
posted @ 2012-06-03 16:07 qwop 阅读(174) 评论(0) 推荐(0) 编辑