Hellow! I have written a program with some overloading function like bellow:
In head file:
class A
{
......
void V(void);
void V(float);
void V(String);
void V(String (*)());
void V(void (*)(Frame&));
void V(float (*)());
......
}
In source file, I'v written like bellow first:
......
void A::V() { .....} (function 1)
void A::V(float v) { ...... } (function 2)
void A::V(String v) { ...... } (function 3)
void A::V(String (*p)()) { ...... } (function 4)
void A::V(void (*p)(Frame&)) { ...... } (function 5)
void A::V(float (*p)()) { ...... } (function 6)
I'v used VC++ 5.0 to compile it, but there were 104 errors occur from
function 4. It's still have 31 errors after puting function 4 ahead function
3, and finally no any error occur after put function 4 ahead function 2, and
put function 5 ahead function 3. Could you any one tell why it does this.
Email to me please(
li...@zg-public.sc.cninfo.net). Thanks a lot.
Liu Kang