摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2122 1 #include 2 #include 3 typedef struct node 4 { 5 int data; 6 struct node *next; 7 }lb; 8 lb *creat(int n) //建立逆序链表 9 { 10 int i; 11 lb *head,*p; 12 head=(lb*)malloc(sizeof(lb)); 13 ... 阅读全文
posted @ 2013-03-11 20:37 海东青飞吧! 阅读(232) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1464 1 #include 2 #include 3 typedef struct node 4 { 5 int data; 6 struct node *next; 7 }lb; 8 lb *creat(int m)//建顺序表 9 {10 int i;11 lb *head,*tail,*p;12 head=(lb*)malloc(sizeof(lb));//申请空间,开辟结点13 head->ne... 阅读全文
posted @ 2013-03-11 20:32 海东青飞吧! 阅读(157) 评论(0) 推荐(0) 编辑