Like this:
...
int Class::Non_Static_Function
{
...
return 0;
}
static int Clas::Static_Function()
{
...
return 0;
}
void main()
{
Class *obj;
int x, y;
x = obj.Non_Static_Function() <- call to regular member function
y = Class::Static_Function() <- call to static function
}
Main Topics
Browse All Topics





by: cuziyqPosted on 2008-09-11 at 06:43:34ID: 22449721
Sure. class::static_function.