1 system()函数
system()函数的作用是执行指令,该函数的格式为
int system(
const char *command
);
其中,参数command指定了要执行的指令。以下代码的作用是调用“e:\1.exe”程序。
system("e:\\1.exe");
在使用system()函数时,需要在程序中包含process.h
system()函数的作用是执行指令,该函数的格式为
int system(
const char *command
);
其中,参数command指定了要执行的指令。以下代码的作用是调用“e:\1.exe”程序。
system("e:\\1.exe");
在使用system()函数时,需要在程序中包含process.h