int main(void){ Singleton *instance = Singleton::getInstance(); instance->setValue(35); cout << instance->getValue() << endl; Singleton *object = Singleton::getInstance(); cout << object->getValue() << endl; }