#include<stdio.h> #include<string.h> //在使用到字符数组时需要使用 #include<stdlib.h> void main() { int system(const char *string); //定义数组中的值 char cmd[20][20]={"dir","cd","md","rd","cls","date","time","ren","copy","help","quit"}; char str[20]; //Init(str); printf("Microsoft Windows [版本 10.0.10240] ");//设置标题 printf("(C) 2015 Microsoft Corporation. All rights reserved. "); while(1)//进入函数循环 { printf(" C:\Users\mj>"); gets(str); int i,date; for(i=0; '