摘要: #include<stdlib.h>#include<stdio.h>typedef struct node { int data; struct node *next;}Node;Node *CreatList( int n ) /*n用于指定链表长度*/{ int val, i; Node *phead, *p; phead = ( Node * )malloc( sizeof( Node ) ); /*建立一个带头结点的链表*/ phead->next = NULL; printf( "输入链表节点数据:\n" ); for( i = 0 阅读全文
posted @ 2012-09-21 20:21 糙哥 阅读(477) 评论(0) 推荐(0) 编辑