how do i make only 1 object creation of any class?
+1
A:
It's known as the Singleton design pattern. There are many tutorials for it, e.g. one here.
Alex Martelli
2010-04-04 01:24:26
+1
A:
Check out the Singleton Pattern: http://sourcemaking.com/design_patterns/singleton
EDIT: Updated link from C# to C++
mcabral
2010-04-04 01:24:52