object in c++

hi all
is it possible to don't declare an object for a class and use the function of this class ? i saw a code use this but i cannot find it again .. can someone tell me what is this style name?
you can use a function of a class without object when you have a static function. But then you cannot use member variables of that class
No they dont have an object. they are called via the struct/class itself.
1
2
3
4
5
// static data members and functions belong to the class and
  // can be accessed without using an object of class X
  X::print_si();
  X::set_si(22);
  X::print_si();
but in that code the function are not static :(
foozhan wrote:
but in that code the function are not static :(

Sure they are. Why do you say that?
i mean in that code i loss and can not find it again... no this link, i understand this example
Topic archived. No new replies allowed.