标签:SingleTon
C++ SingleTon问题,初次学习,麻烦指点下哪里有问题,O(∩_∩)O谢谢
class SingleTonDemo { private: static SingleTonDemo *pInstance; SingleTonDemo(){ if (!pInstance) { pInstance = new SingleTonDemo(); } } ~SingleTonDemo(){ print("Des……
04-02 立刻查看
class SingleTonDemo { private: static SingleTonDemo *pInstance; SingleTonDemo(){ if (!pInstance) { pInstance = new SingleTonDemo(); } } ~SingleTonDemo(){ print("Des……