![]() |
#2
布拉莫斯2007-04-11 23:19
|
下面是我的代码
int KString::findSubstring(const KString &strsub) //寻找
{
int i=strsub.getLenth();
if(m_nstrlen<i)
{
}
return 0;
}
报错为
error C2662: 'getLenth' : cannot convert 'this' pointer from 'const class KString' to 'class KString &'