摘要:
#include <iostream>using namespace std;class String{public: String(const char *str = NULL); // 通用构造函数 String(const String &another); // 拷贝构造函数 ~ String(); // 析构函数 String& operator =(const String&);// 赋值函数 friend ostream& operator << (ostream&, const String& s); fr 阅读全文
posted @ 2011-07-28 15:14
hailong
阅读(393)
评论(0)
推荐(1)
摘要:
/////////////////////////////////////////// 文件名: MyString.h// 作者: Carrie Chen// 日期: 2007年11月17日// 用途: CString类源程序// 开发平台: VC++2005/////////////////////////////////////////#include <string>#include <stdlib.h>#include <iostream>#include <exception>#include <string.h>using 阅读全文
posted @ 2011-07-28 09:48
hailong
阅读(410)
评论(0)
推荐(0)

浙公网安备 33010602011771号