顺序表,链表总结实验介绍.docVIP

  • 28
  • 0
  • 约9.96千字
  • 约 27页
  • 2016-06-07 发布于湖北
  • 举报
实验报告 实验目的:学生管理系统(顺序表) 实验要求: 1.建表 2.求表长 3.插入 4.查找 5.删除 6.列表 7.退出 源程序: #include stdio.h #include string.h #includestdlib.h #define MaxSize 1000 typedef struct { char xh[40]; char xm[40]; int cj; }DataType; //学生的结构 typedef struct { DataType data[MaxSize]; //定义表的数据类型 int length; //数据元素分别放置在data[0]到data[length-1]当中 } SqList; //表的结构 void liebiao(SqList *L) //建立表格 { int k,n; char q; printf(请输入,输入学生的个数:\n); fflush(stdin); scanf(%d,n); for(k=0;k=n-1;k++) { printf(请输入学生学号\n); scanf

文档评论(0)

1亿VIP精品文档

相关文档