MySTLString】的更多相关文章

#include <iostream> #include <cstring> #include <string> using namespace std; class MySTLString { public: MySTLString(); MySTLString(int count, char ch); MySTLString(const char* s); const char& front() const; const char& back() c…
auto ptr = new char[10]; delete ptr; delete 一个动态数组不能直接delete ptr, 应该是 delete[] ptr;…