资 源 简 介
用C语言作为编程语言,用结构体作为文件和目录等的编程结构;对于文件,其结构体中包括文件名、属性、文件内容、文件长度、指向父目录的指针、指向子目录的指针、指向同层目录或文件的指针。 目录结构和文件结构相似,只是没有内容,其只有子目录和子文件。 用户结构包括用户名、指向其文件目录的指针、指向下一个用户的指针。设置的文件操作命令有17条:新建文件、新建目录、删除文件、删除目录、在当前目录下指定目录新建子目录、在当前目录下指定目录新建子文件、打开文件、关闭文件、读文件、写文件、修改文件名、修改目录名、修改文件属性、进入指定目录、返回父目录、显示当前目录的信息、显示当前所在目录的路径等。-C language as a programming language, the structure used as a file and directory structure of the program; The document, the body structure, including file name, attribute, the contents of the documents, document length, point to the parent directory pointer subdirectory pointer with directory or file level indicator . Directory structure and the structure of the document is similar, but no, and their only son and subdirectories document. Users structure includes user name, at its directory pointer under a user"s guide. Set up in the paper commands a 17 : new document, the new directory, delete files, delete directory, the current directory specified directory new subdirectories in the current