
1---C/C++基础---
文章平均质量分 71
熊猫bu冬眠
这个作者很懒,什么都没留下…
展开
-
VC6.0对友元的支持问题
#include using namespace std; class MyString { public: MyString(char *ptr=NULL); ~MyString(); friend ostream& operator { if (str.m_data != NULL) out return out; } private: char* m_原创 2014-11-11 16:09:52 · 1316 阅读 · 0 评论 -
一个简单的string类实现
#include using namespace std; class MyString { public: MyString(char *ptr=NULL); ~MyString(); MyString(const MyString& other); MyString& operator=(const MyString& other); friend ostream& operato原创 2014-11-11 17:36:28 · 567 阅读 · 0 评论