5
回答
在一个c语言程序里面,我需要执行其他的四个程序,方式如下,如果在命令里面敲命令,这四个程序没有问题,可是,用c语言的system就有问题了。。。程序不能终止,而且四个程序在命令行的输出(printf)很乱
printf("%s\n", gmArg.c_str());
system(gmArg.c_str());
getchar();getchar();
printf("%s\n", cpArg.c_str());
system(cpArg.c_str());
printf("%s\n", anaArg.c_str());
system(anaArg.c_str());
printf("%s\n", fumountArg.c_str());
system(fumountArg.c_str());