摘要: 1. 只支持单线程 (不推荐) 1 #include 2 using namespace std; 3 4 class Singleton 5 { 6 public: 7 static Singleton* getInstance();//必须是static,这样才可以通过类名访问。 8... 阅读全文
posted @ 2015-06-03 21:39 Ryan in C++ 阅读(370) 评论(0) 推荐(0)