freehell

2009年6月9日

简单链表的创建及修改

摘要: #include<stdio.h>#include<stdlib.h>#define null 0typedef struct node{ char data; struct node *next;}listnode;//创建返回头节点的函数;listnode *creatlist(){listnode *Head=(listnode *)malloc(sizeof(listnode));listnode *s,*r=Head;char ch;printf("请输入链表节点数据:"); ch=getchar(); while(ch!='@&# 阅读全文

posted @ 2009-06-09 18:37 freehell 阅读(340) 评论(0) 推荐(0) 编辑

导航