摘要:
View Code /*refer:http://stackoverflow.com/questions/270947/can-any-one-provide-me-a-sample-of-singleton-in-c/271104#271104 */#include <vector>#include <string>#include <iostream>using namespace std;class Sin{ public: static Sin& getInstance() { static Sin instance; ... 阅读全文