i have a class with static functions. i need to use the functions without creating an instance of the class.
is it possible?
i have a class with static functions. i need to use the functions without creating an instance of the class.
is it possible?
Sure:
class A {
public:
static void f();
};
...
A::f(); // call function
Or you can use the singleton design pattern: http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B