...全文
157 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
lastnemo 2009-12-20
  • 打赏
  • 举报
回复
接分
2009-12-20
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 lqbk1 的回复:]
回错帖,就这么简单
[/Quote]
最近大牛们流行小号?
lqbk1 2009-12-20
  • 打赏
  • 举报
回复
回错帖,就这么简单
2009-12-20
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 mstlq 的回复:]
三处改动……
C/C++ codeclass ListNode
{public:int key;
ListNode*next;
ListNode():next(NULL){}
ListNode(int x):key(x),next(NULL){}~ListNode(){};//mark
};

C/C++ codeclass LinearList
{private:int size;
ListNode*head;public:
LinearList(void) ;~LinearList(void);bool insert(int x,int pos);bool remove(int&x,int pos);int element(int pos)const;int search(int x)const;int length()const;
ListNode* find(int i)const;//mark};
C/C++ codeListNode* LinearList::find(int i)const//mark{
ListNode*node= head;int x=0;while ((x++<i)&&(node!=NULL))
node= node->next;return node;
}
[/Quote]
弱弱地问一下,这是什么动静?
z569362161 2009-12-20
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 mstlq 的回复:]
三处改动……
C/C++ codeclass ListNode
{public:int key;
ListNode*next;
ListNode():next(NULL){}
ListNode(int x):key(x),next(NULL){}~ListNode(){};//mark
};

C/C++ codeclass LinearList
{private:int size;
ListNode*head;public:
LinearList(void) ;~LinearList(void);bool insert(int x,int pos);bool remove(int&x,int pos);int element(int pos)const;int search(int x)const;int length()const;
ListNode* find(int i)const;//mark};
C/C++ codeListNode* LinearList::find(int i)const//mark{
ListNode*node= head;int x=0;while ((x++<i)&&(node!=NULL))
node= node->next;return node;
}
[/Quote]

什么意思?

发错了,还是也要倒啊
mstlq 2009-12-20
  • 打赏
  • 举报
回复
三处改动……
class ListNode
{
public:
int key;
ListNode *next;
ListNode():next(NULL){}
ListNode(int x):key(x),next(NULL){}
~ListNode(){};//mark

};



class LinearList
{

private:
int size;
ListNode *head;

public:
LinearList(void) ;
~LinearList(void);
bool insert(int x, int pos);
bool remove(int &x, int pos);
int element(int pos) const;
int search(int x) const;
int length() const;
ListNode* find(int i)const; //mark
};

ListNode* LinearList::find(int i) const //mark
{
ListNode *node = head;
int x = 0;
while ((x++ <i)&&(node!=NULL))
node = node->next;
return node;
}
z569362161 2009-12-20
  • 打赏
  • 举报
回复
见的多了。

MARK得100分的也见过。

至少 比UP多一倍字符。

小梁_unique 2009-12-20
  • 打赏
  • 举报
回复
恩恩
mstlq 2009-12-20
  • 打赏
  • 举报
回复
为了提高得分率……
我回一帖……
yzx714 2009-12-20
  • 打赏
  • 举报
回复
应该是吧……

15,440

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧