// 改变目录
void CD(char dirName[])
{
dirNode *p;
int flag=;
p=workDir>sub;
if(p==NULL){
cout<<错误\< }
else{
while(p){
if(p->type==0){
if(!strcmp(p->name,dirName)){
flag=1;
break;
}
}
p=p->next;
}
if(flag==1){
workDir=p;
strcat(path,"\\ ");
strcat(path,p->name);
cout<<"工作目录已进入\""< }
else{
cout<<"错误,\""< }
}
}
//2 创建文件
void CREATE(char fileName[],int fileSize)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]