摘要: 单链表操作,包括创建,插入,删除,排序,逆置 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct student 8 { 9 int data; 10 struct student *next; 11 }node; 12 13 node *creat() 14 { 15 node *head,*p,*s; 16 int x,cycle=1; 17 head=(node*)malloc(sizeof(node)); 18 p=head; 1... 阅读全文
posted @ 2013-07-31 15:43 mood3604 阅读(254) 评论(0) 推荐(0) 编辑