参考这个博主
https://blog.csdn.net/u014530704/article/details/73848573
system()函数
返回值:
成功则返回进程的状态值;
当sh不能执行时,返回127;
失败返回-1;
system("./changeData config.txt");
可以代替exc族函数
popen函数
和system相比可以获取运行输出结果
https://blog.csdn.net/libinbin_1014/article/details/51490568