赞
踩
我记得学C语言没几天 刚接触到一个头文件的时候,我就心血来潮,写了一个CMD 其实,实现起来还是很简单的
#include <stdio.h>
#include <stdlib.h>
#define MAX 2000
int main(void)
{
char command[MAX];
puts("C语言头文件应用 --- 简易CMD By:紫玫冰心 \n");
goto start;
start:
printf("Command:");
fgets(command,sizeof(command) + 1,stdin);
system(command);
goto start;
return 0;
}

运行效果:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。