摘要: c++中比较常用的一种类型是字符串类型,平常都是调用"string.h" 头文件或类库,这里简单的进行自定义。首先编写String类,创建头文件String.h:String.h 1 #include 2 using namespace std; 3 4 class String 5 { 6 public: 7 String(const char *str = NULL); 8 String(const String &other); 9 ~String(void);10 String & operator =(const String &other 阅读全文
posted @ 2013-04-25 23:29 Air Support 阅读(642) 评论(0) 推荐(0) 编辑