操作系统 文件存储空间管理(13)

时间:2026-01-14

操作系统 文件存储空间管理 c++代码

{ int choice;

char judge;

printf("文件管理空间管理\n");

printf("\ninput your choice:(1--assign,2--callback,3--backtofilecontrol):\n");

scanf("%d",&choice);

getchar();

if(choice==1)

assign();

else if(choice==2)

callback();

else if(choice==3)

filecontrol();

else

printf("\ninvalid command!");

printf("\ncontinue or not?(y--Yes,n--Not):");

scanf("%c",&judge);

getchar();

if(judge=='y')

menu();

else

{ printf("\nNow the graph is:");

display();

printf("\npress any key to quit");

getchar();

}

}

void chengzulink()

{ int i;

for(i=0;i<=3;i++)

MA[i]=A[0][i];

display();

menu();

}

int filecontrol() //主函数

{ int i, j=0,p,len=0;

char tmp[10],com[10],tmp1[10],k;

struct command tmp2[10];

FILE *fp;

help();

strcpy(cmd[0].com,"format"); //将各个命令存进命令表

strcpy(cmd[1].com,"dir");

strcpy(cmd[2].com,"cat");

strcpy(cmd[3].com,"ls");

strcpy(cmd[4].com,"md");

操作系统 文件存储空间管理(13).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:4.9 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:19元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219