函数名: 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;
}
C语言system函数

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2021-06-30
  • 2021-09-17
  • 2022-12-23
  • 2021-09-28
  • 2021-08-16
  • 2021-12-31
猜你喜欢
  • 2021-04-21
  • 2021-12-19
  • 2022-02-13
  • 2021-09-08
  • 2022-12-23
相关资源
相似解决方案