数据结构实验报告.docVIP

  • 2
  • 0
  • 约3.82千字
  • 约 14页
  • 2023-10-17 发布于浙江
  • 举报
学号: 专 业: 信息管理与信息系统 年 级: 姓 名: 题 目: 数据结构实验报告 2012年5月31日 实验一? 线性表 题目:线性表链式存储结构下基本操作的实现(初始化、赋值、取值、插入、删除、归并等)。 程序清单: #includestdio.h #define listinitsize? 20 #define listincrement 10 typedef struct{ int? *elem; int? length; int? listsize; }sqlist; main() { void initlist(sqlist *L); void add(sqlist *La,sqlist *Lb,sqlist *Lc); sqlist *La,*Lb,*Lc; int? ? i,p,num; initlist(La); initlist(Lb); initlist(Lc); printf(please input the numbers of you want about La:\n); scanf(%d,num); printf(\n); for(i=0;inum;i++) { scanf(%d,p); La-elem[i]=p; La-length++; } printf(please input the numbers of you want about

文档评论(0)

1亿VIP精品文档

相关文档