摘要: http://tangfeng.iteye.com/blog/89140试验C++构造函数,析构函数,拷贝构造函数和赋值构造函数#include "stdafx.h"#include <iostream>#include <string.h>using namespace std;class student {public:student(){cout<<"default constructor is called!"<<endl;name=new char[1];name[0]='\0'; 阅读全文
posted @ 2012-11-07 23:32 小心小意 阅读(214) 评论(0) 推荐(0) 编辑