教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 专业资料 >

《操作系统课程设计报告》(2)

来源:网络收集 时间:2025-09-15
导读: filename:sun1 fileattribute('0':read only,'1':read or write):0 recordlength(1 to 100):10 fileaddress:from 1 to 10 Do you want to add this file to UOF?(Y/N)):y Do you want to input any more?(Y/N)):y Y

filename:sun1

fileattribute('0':read only,'1':read or write):0 recordlength(1 to 100):10 fileaddress:from 1 to 10

Do you want to add this file to UOF?(Y/N)):y Do you want to input any more?(Y/N)):y

You have already inputted the most files!You cann't input any more. File 2

filename:sun2

fileattribute('0':read only,'1':read or write):0 recordlength(1 to 100):10 fileaddress:from 11 to 20

Do you want to add this file to UOF?(Y/N)):n Do you want to input any more?(Y/N)):n //用户sun初始化完毕 0 zhao 1 qian 2 sun 3 li 4 zhou 5 new

6 begin operation 7 end

Input number :5 Please input the new username:liu Now using liu's file!!

Please input filename,fileattribute,recordlenght File 1

filename:liu1

fileattribute('0':read only,'1':read or write):1 recordlength(1 to 100):10 fileaddress:from 21 to 30

Do you want to add this file to UOF?(Y/N)):y Do you want to input any more?(Y/N)):n 0 zhao 1 qian 2 sun 3 li 4 zhou 5 liu 6 new

7 begin operation 8 end

Input number :7 Now,you can input your request!! zhao qian sun li zhou liu

Please input the username:sun The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

//新建用户liu并初始化 //开始文件操作 //先以用户sun登陆

Please input your order:8

FileName FileAttribute User sun1 0 sun sun2 0 sun liu1 1 liu The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:6

Input the filename that you want to delete:sun2 File deleting successful! File already deleted! The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:7 zhao qian sun li zhou liu

//列出当前文件

//删除用户sun下文件sun2

Please input the username:liu The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:1

Input the filename that you want to create:liu2 Input file's attribute and length:

fileattribute('0':read only,'1':read or write):0 recordlength(1 to 100):15 File creating successful. The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:3

Input the filename that you want to close:liu1 File closing successful. The order is: 1=create 2=open 3=close 4=read 5=write 6=delete

//切换用户至liu

//在用户liu下新建文件liu2

//关闭处于UOF中的文件liu1

7=changeUSER 8=list 9=end

Please input your order:6

Input the filename that you want to delete:liu1 //删除文件liu1

File deleting successful! File already deleted! The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:8

FileName FileAttribute User sun1 0 sun liu2 0 liu The order is: 1=create 2=open 3=close 4=read 5=write 6=delete 7=changeUSER 8=list 9=end

Please input your order:9

//列出当前文件

//结束

…… 此处隐藏:728字,全部文档内容请下载后查看。喜欢就下载吧 ……
《操作系统课程设计报告》(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/51190.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)