我卡住了,为什么我会收到一个错误:声明不兼容...
‘'void::function ( int,int,std::vector<_Ty> *)’:在'A‘中找不到重载的成员函数错误向量:语法错误:标识符’C2061‘1> with 1> 1> _Ty=Point 1>
//cpp file
void A::function(int a, int b, vector<B> *p)
{
}
//header file
class B
{
public:
int q;
};
class A
{
public:
void function(int a, int b, vector<B> *p);
};
https://stackoverflow.com/questions/5339395
复制相似问题