我有一个c ++程序
我ImageMagick command通过system();函数调用
它正在为一些简单的命令工作
但是当我调用这个命令时
sprintf(command, "convert -threshold 25% f1/file%.3d.png f2/file%.3d.png", num,num);
system(command);
Run Code Online (Sandbox Code Playgroud)
它给了我警告说
warning: format ‘% f’ expects type ‘double’, but argument 3 has type ‘int’
Run Code Online (Sandbox Code Playgroud)
我知道因为%在命令25 % f1有不同的含义
请帮帮我...