[C] 创建并运行子程序 →→→→→进入此内容的聊天室

来自 , 2021-01-06, 写在 C, 查看 127 次.
URL http://www.code666.cn/view/be53d253
  1. #include <process.h>
  2. #include <stdio.h>
  3. #include <conio.h>
  4.  
  5. int main(void)
  6. {
  7.    int result;
  8.  
  9.    clrscr();
  10.    result = spawnl(P_WAIT, "tcc.exe", NULL);
  11.    if (result == -1)
  12.    {
  13.       perror("Error from spawnl");
  14.       exit(1);
  15.    }
  16.    return 0;
  17. }
  18.  

回复 "创建并运行子程序"

这儿你可以回复上面这条便签

captcha