原帖由 alphading 于 2009-9-11 10:43 PM 发表
//This is file LinkedList.cpp
#include "LinkedList.h"
#include
#include
#include
#include
using namespace std;
LinkedList::size_type LinkedList::count(const value_type& target) const
{
size_type answer;
const Node *cursor;
answer = 0;
cursor = list_search(head_ptr, target);
while(cursor!=NULL)
{
++answer;
cursor = cursor->next;
cursor = list_search(cursor,target); //<--------error
}
return answer;
} ...
原帖由 alphading 于 2009-9-12 01:00 AM 发表
对不起,能不能请你翻译參數類型 的英文是什么???
因为我在australia 读书,学的都是英语,华语的我不明白. 抱歉..........
/*This is file LinkedList.cpp
#include "LinkedList.h"
#include ...
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |