设计模式
设计模式
如果天空不死-sky wang
这个作者很懒,什么都没留下…
展开
-
设计模式--单例模式
// 饿汉 class Singleton { public: static Singleton* getInstance(); private: Singleton() { cout << "new" << endl; } Singleton(const Singleton&) = delete; Singleton& operator=(const Singleton&)=delete; .原创 2021-07-07 21:18:53 · 71 阅读 · 0 评论 -
设计模式-面试常用
设计模式原创 2021-07-04 23:07:16 · 49 阅读 · 0 评论