摘要:
无聊写了个单链表排序,不是很难。但是插入写起来很麻烦,都没有,本文全部是将链表中节点值互换,不改变结构,所以很容易写出来 #includeusing namespace std;struct node{ int n; struct node* next;};//创建链表void swap(int &a,int &b){ int c=a; a=b; b=c;}node*... 阅读全文
posted @ 2014-05-22 19:06
hansongjiang8
阅读(250)
评论(0)
推荐(0)

浙公网安备 33010602011771号