C语言库函数mkdir函数名:mkdir功 能:建立一个目录用 法:int mkdir(char *pathname);程序例:#include #include #include #include int main(void){int status;clrscr();status = mkdir("asdfjklm");(!status) ? (printf("Directory created
")) :(printf("Unable to create directory
"));getch();system("dir");getch();status = rmdir("asdfjklm");(!status) ? (printf("Directory deleted
")) :(perror("Unable to delete directory"));return 0;}
以上内容由大学时代综合整理自互联网,实际情况请以官方资料为准。