摘要: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