C语言 建立 输出 插入 删除 修改功能的单项动态链表.docVIP

  • 10
  • 0
  • 约6.52万字
  • 约 7页
  • 2017-02-14 发布于河南
  • 举报

C语言 建立 输出 插入 删除 修改功能的单项动态链表.doc

C语言链表类题目 写函数一个有三名学生数据的, 有建立 输出 插入 删除 修改功能的单项动态链表,很全面,各种测试都试过了,环境VC6.0 结构体为学号 成绩 #include stdio.h #include string.h #include malloc.h struct Student { long num; float score; struct Student* next; struct Student *pre; }; int n=0; struct Student* create(void) { struct Student *head; struct Student *tail; struct Student *pre; struct Student *p; head = NULL; pre = NULL; p=(struct Student*)malloc(sizeof(struct Student)); printf(请输入用户名和得分:\n); scanf(%ld %f,p-num,p-score); if (0 == p-num) { return NULL; } while(0 != p-num) { n++; if (NULL == head) { head=p; tail=p;

文档评论(0)

1亿VIP精品文档

相关文档