系統()我有一個C++程序
我打電話ImageMagick command
通過system();
功能
它對於一些簡單的命令
但工作時,我呼籲這個命令警告:在C++
sprintf(command, "convert -threshold 25% f1/file%.3d.png f2/file%.3d.png", num,num);
system(command);
其給我警告說
warning: format ‘% f’ expects type ‘double’, but argument 3 has type ‘int’
我知道是因爲%
在命令25 % f
1是具有不同的含義
請幫我...
非常感謝兄弟 – Wazzzy