class A
{
public:
A();
~A()
A *h;
void B(A &);
private:
...
};
A::B(A &b)
{
...
}
我改成这样后有两个错误:
error C2556: 'int __thiscall A::B(class A &)' : overloaded function differs only by return type from 'void __thiscall A::B(class A &)'
see declaration of 'B'
error C2371: 'ADD' : redefinition; different basic types
see declaration of 'B'
这又是怎么回事啊?