//
void CD(char dirName[])
{
dirNode *p;
int flag=
p=workDir
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]
From:http://tw.wingwit.com/Article/program/czxt/201311/24012.html