P
parmenides
Hi,
We can define a member function for a class like this:
class foo{
....
void mfunc(void);
};
void foo::mfunc(void)
{
... ...
}
Why we can not define a global function like this:
void ::func(void)
{
... ...
}
The former is modified by '::", while the latter can not. I wonder it seems
an odd strategy.
We can define a member function for a class like this:
class foo{
....
void mfunc(void);
};
void foo::mfunc(void)
{
... ...
}
Why we can not define a global function like this:
void ::func(void)
{
... ...
}
The former is modified by '::", while the latter can not. I wonder it seems
an odd strategy.