函数名: system
功 能: 发出一个DOS命令
用 法: int system(char *command);
system函数已经被收录在标准c库中,可以直接调用。
例如:
#include<stdio.h>
#include<stdlib.h>
int main()
{
printf(“About to spawn and run a DOS command\n”);
system(“dir”);
return 0;
}
函数名: system
功 能: 发出一个DOS命令
用 法: int system(char *command);
system函数已经被收录在标准c库中,可以直接调用。
例如:
#include<stdio.h>
#include<stdlib.h>
int main()
{
printf(“About to spawn and run a DOS command\n”);
system(“dir”);
return 0;
}