#include <iostream>
class Singleton {
public:
static Singleton* Instance() {
if (instance == 0) {
instance = new Singleton;
}
return instance;
}
protected:
Singleton();
private:
static Singleton* instance;
};