当我在下面的代码中调用 getCount 函数时,QT 4.7.3 编译器给出了错误。构建错误
将 'cont Person' 作为 'int Person::getCount(const QString&) 的 'this' 参数传递会丢弃限定符
bool Person::IsEligible(const QString& name)
{
int count = 0;
count = getCount(name);
}
int Person::getCount(const QString& name)
{
int k =0
return k;
}