摘要: C++类String的实现代码:#include<iostream>using namespace std; class String{ friend ostream& operator<< (ostream&,String&);public: String(const char* str=NULL); //赋值构造兼默认构造函数(char) String(const String &other); //赋值构造函数(String) String& operator=(const String&other... 阅读全文
posted @ 2011-10-23 20:16 早起两小时 阅读(1593) 评论(0) 推荐(1)