NoFear

导航

2012年2月24日

摘要: View Code #include <stdio.h>class Singleton{public: static Singleton* Intance() { if(!mSingleTon) mSingleTon=new Singleton(); return mSingleTon; }protected: Singleton() { printf("object init"); }private: static Singleton* mSingleTon;};Singleton* S... 阅读全文

posted @ 2012-02-24 20:02 Fear_Hao 阅读(164) 评论(0) 推荐(0) 编辑