나는 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++은 마술이 아닙니다. 얇은 공기가 있다면 그것은 당신을위한 문자열을 포맷하지 않습니다. –