计算机操作系统实验讲义

2026/4/26 16:32:07

if(flag) break; oldtempnode=tempnode; tempnode=tempnode->next; }

if(flag) { if(tempnode->subFile!=NULL) { cout<>ch; } if(ch=='y'||ch=='Y') { if(tempnode==workDirFile->subFile) { workDirFile->subFile=tempnode->next; delnode(tempnode); } else { oldtempnode->next=tempnode->next; delnode(tempnode); } } } else { cout<

void ren(char *name1,char *name2) {

DirectoryNode *tempnode; int flag=0;

tempnode=workDirFile->subFile; while(tempnode) { if((tempnode->type==1)&&!stricmp(tempnode->name,name2)) { cout<<\ return; }

tempnode=tempnode->next; }

tempnode=workDirFile->subFile; while(tempnode&&flag==0) { if(tempnode->type==1) { if(!stricmp(tempnode->name,name1)) { flag=1; strcpy(tempnode->name,name2); } } tempnode=tempnode->next; }

if(flag==0) { cout<<\ } }

void command() {

int i;

char com[11][10]={\ for(i=0;i<11;i++) { if(!(i%3)) printf(\ printf(\ }

printf(\}

void init() {

workDirFile=&root;

workDirFile->preDirFile=NULL; md(\ md(\

strcpy(path,\

printf(\}

void main() {

int i,j,parameter,n,len,flag; char string[50],*str[4],s[50]; init(); i=1; do { printf(\ gets(string); len=strlen(string); for(parameter=0,flag=1,j=0;j

{ workDirFile=workDirFile->preDirFile; for(j=strlen(path);path[j]!='\\\\';j--); path[j]='\\0'; } }

else if(!stricmp(\{ if(parameter==1) { cout<>str[1]; cout<>n; cout<>n; cout<

else if(!stricmp(\{ if(parameter==1) { cout<>str[1]; cout<

else if(!stricmp(\{ if(parameter==1) { cout<>str[1]; cout<


计算机操作系统实验讲义.doc 将本文的Word文档下载到电脑
搜索更多关于: 计算机操作系统实验讲义 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

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

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