当前位置:首页 > 操作系统课程设计报告
break; case 6:
move_file(u,con); break; }
}while(choice!=0); }
void login(){ int choice; int find=0; int login=0; User *p; Content *con;
User *head=user->next;; p=(User *)malloc(sizeof(User));
con=(Content *)malloc(sizeof(Content)); con->next=NULL; p->con=con; head=p; do{
printf(\显示所有存储空间\\n\ printf(\新建存存储空间\\n\ printf(\删除存储空间\\n\
printf(\写入存储空间\\n\ printf(\退出\\n\ printf(\输入以上选项:\ scanf(\ switch(choice){
case 1:display_contents(head);break; case 2:add_content(head);break; case 3:del_content(head);break; case 4:into_content(head);break; }
}while(choice!=0); }
int main(){
user=(User *)malloc(sizeof(User)); user->next=NULL; login();
printf(\谢谢使用!\\n\ return 0; }
四、系统测试
系统功能模块测试、性能测试结果: 进入系统菜单:
add_content(User *u)新建存储空间:
display_contents(User *u)显示所有存储空间状态:
del_content(User *u)删除存储空间:
into_content(User *u)写入存储空间:
进入文件系统菜单:
write(char name[])写入文件:
共分享92篇相关文档