- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 单例模式的C++实现
#include using namespace std; class Singleton { public: //提供访问单例的公共接口 static Singleton& Singleton::getInstance() { static Singleton s; //静态变量保证只有一个实例 //这样下还有一个好处就是直到用户调用 //getI
2014-11-11 18:56:50
443
原创 一个简单的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
564
原创 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
1304
MFC深入浅出--李进久
2014-02-09
改造通用对话框
2013-12-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人