报错:increment of member 'skipList::findCount' in read-only object
因为函数后面有const,所以这是个“只读”成员函数,只读函数不能改变类的成员变量。
解决这个问题只需要去掉成员函数名()后面的const。
报错:increment of member 'skipList::findCount' in read-only object
因为函数后面有const,所以这是个“只读”成员函数,只读函数不能改变类的成员变量。
解决这个问题只需要去掉成员函数名()后面的const。