C课程设计讲解讲义.pptVIP

  • 6
  • 0
  • 约 41页
  • 2016-11-10 发布于江苏
  • 举报
6 链表典型操作的各函数头的定义 struct student *creat(void) {} void print(struct student *head) {} struct student *del(struct student *head,int sno) {} struct student * insert(struct student *head,struct student *stud){} struct student * sort(struct student *head,struct student *stud){} #define NULL 0 #define LEN sizeof(struct student) struct student {long num; char name[12]; char sex; int age; char tel[15]; char addr[10]; struct student *next; }; 将链表中的节点内容写到文件中 void save(struct student *head) {struct student *p; FILE *fp; fp=fope

文档评论(0)

1亿VIP精品文档

相关文档