int main(int argc , char *argv []) { Singleton *singletonObj = Singleton ::GetInstance(); cout<<singletonObj->GetTest()<<endl; return 0; }
int main(){ Singleton * singletonObj = Singleton::GetInstance(); cout << singletonObj->GetTest() << endl; return 0; }
int main(){ Singleton * singletonObj = Singleton::GetInstance(); cout << singletonObj->GetTest() << endl; Singleton::DestroyInstance(); }