The point of a singleton is that, whenever you make you try to make a new instance of it, you get the first created instance(unless no previous one has been created). SO if you're singleton has say a variable for Time since program started(just a random example), so then it can be accessed everytime by simply creating a pointer of the singleton.
SingletonTime *Time = new SingletonTime();
Time.SetTime(GetTickCount());
thats in your main or winmain function, now all your other functions, objects etc. can go
and it will print out your time you set in the main function, it works really well, and does allow really complicated systems.Code:void submain() {
SingletonTime *Time = new SingletonTime()l
cout << Time.getTime();
}