设计模式

单例模式、工厂模式、建造者模式、观察者模式、适配器模式、桥接模式、命令模式、策略模式、迭代器模式、解释器模式

1、单例模式

     class Singleton

     {   

            private:

            Singleton();

            public:

            static Singleton * GetInstance()

            {

                     static Singleton s_gInstance;

                     return &s_gInstance;

            }

     }

 

你可能感兴趣的:(求职)