操作系统 文件存储空间管理(13)
时间:2026-01-14
时间: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");
上一篇:四川移动公司协同办公视频会议系统
下一篇:单人简易呼吸囊操作流程