1. 首页
  2. 数据库
  3. 其它
  4. C++类的封装之 字符串MyString类

C++类的封装之 字符串MyString类

上传者: 2021-01-15 21:41:58上传 PDF文件 28.96KB 热度 14次
包括了运算符重载<> = + == [ ] mystring.h #ifndef MYSTRING_H #define MYSTRING_H #include using namespace std; class MyString { friend ostream& operator<>(istream& in,MyString& ob); private: char *str; int size; public: MyString(); MyString(const char *str); MyString
下载地址
用户评论