把文件逻辑结构转换成存储结构,设计便于顺序存取和直.docxVIP

  • 2
  • 0
  • 约2.43万字
  • 约 19页
  • 2018-05-30 发布于福建
  • 举报

把文件逻辑结构转换成存储结构,设计便于顺序存取和直.docx

把文件逻辑结构转换成存储结构,设计便于顺序存取和直

#includestdio.h #includestdlib.h #includestring.h #includemalloc.h #define FDF -1 #define FFF -2 #define MAX1 30 #define MAX2 32 #define LIST_INIT_SIZE 100 //线性表存储空间的初始容量 #define LISTINCREMENT 20 //线性存储空间的分配增量 typedef struct { char name; int start; }fcb; fcb a[MAX1]; typedef struct { int order; //索引表记录号 int block; //物理块号 }indextab; typedef struct { char filename; //文件名 indextab *ind; //索引表指针 int length; //当前长度 int listsize; //当前分配的初始容量 }filetab; typedef struct { filetab *file; //文件目录表指针 char name[10]; //用户名 int length; //当前长度 int listsize; //当前分

文档评论(0)

1亿VIP精品文档

相关文档