严蔚敏版数据结构学生信息双链表.pdfVIP

  • 1
  • 0
  • 约1.04万字
  • 约 9页
  • 2022-01-25 发布于河北
  • 举报
#include stdio.h #include malloc.h #include stdlib.h typedef struct Student/* 定义学生类 */ { int num; char name[20]; char sex[2]; int age; float grade; }stu; typedef struct DuLNode { stu data; struct DuLNode *next; struct DuLNode *prior; }DuLNode,* DuLinklist; DuLinklist InitList_L()/* 构造一个空的单向链表 */ { DuLinklist L; L=(DuLinklist)malloc(sizeof(stu)); if(!L) printf(ERROR\n); else { L-next=NULL; L-prior=NULL;

文档评论(0)

1亿VIP精品文档

相关文档