object oriented programming in c++
how do i make only 1 object creation of开发者_JS百科 any class?
It's known as the Singleton design pattern. There are many tutorials for it, e.g. one here.
Check out the Singleton Pattern: http://sourcemaking.com/design_patterns/singleton
EDIT: Updated link from C# to C++
精彩评论