3
當我打電話getCount將函數下面的代碼,QT 4.7.3編譯器給該錯誤的功能。生成錯誤如何通過字符串參數使用QT和C++
考取「續人」作爲「這個」的「詮釋人的說法:: getCount將(常量QString的&)丟棄預選賽
bool Person::IsEligible(const QString& name)
{
int count = 0;
count = getCount(name);
}
int Person::getCount(const QString& name)
{
int k =0
return k;
}
由於awoodland,delcarations是INT getCount將(常量的QString&名稱)。布爾IsEligible(const QString&name)const是一個公共時隙。我會改變你所說的。 – 2012-04-23 18:58:09
@Fred - 好點! – Flexo 2012-04-23 19:04:01