摘要: ![此处输入图片的描述][1] 前言 我们在软件开发中会经常用到设计模式,其中运用的最为广泛的设计模式就是单例,下面是实现单例类的代码。 单例类 使用 cpp include include include "singleton.h" class test { // 只需要加入一句代码,就可以将te 阅读全文
posted @ 2016-11-26 20:22 chxuan 阅读(516) 评论(2) 推荐(0) 编辑