我已经写了一个C++程序......在这里我使用系统命令来调用Python程序与参数...C++系统命令
system("python /home/rpms/a3/dsp/noise_rem_python.py /home/rpms/a3/dsp/files/p1f%d.txt",tid);
/home/rpms/a3/dsp/noise_rem_python.py is a program name
/home/rpms/a3/dsp/files/p1f%d.txt
这个程序的参数。
,但我得到的错误是:
"/usr/include/stdlib.h: In function ‘void* writefile(void*)’: /usr/include/stdlib.h:712: error: too many arguments to function ‘int system(const char*)’ writefile.cpp:29: error: at this point in file"
什么是tid); ? – BSen
C++并不神奇。如果空气稀薄,它不会为你排列一个字符串。 –