c++实现单例模式完整源代码 Singleton.hpp main.cpp Singleton.hpp #ifndef __SINGLETON_H__ #define __SINGLETON_H__ #include <iostream> #inc