带头结点链表逆序实现
摘要:
#include<stdlib.h>#include<stdio.h>typedef struct list{int data;struct list*next;} List;List* insert_list_last();List*reverse(List*head);int main(){List*head;List*p;head=insert_list_last();p=head->next;while(p){printf("%d\n",p->data);p=p->next;}printf("affter reve 阅读全文
posted @ 2012-04-26 22:16 ITfeng 阅读(389) 评论(0) 推荐(0)
浙公网安备 33010602011771号