I have one c++ program
I am calling ImageMagick command through system(); function
Its working for some simple commands
But when I am calling this command
sprintf(command, "convert -threshold 25% f1/file%.3d.png f2/file%.3d.png", num,num);
system(command);
Its giving me warning saying
warning: format ‘% f’ expects type ‘double’, but argument 3 has type ‘int’
I know because of % in command 25% f1 is having different meaning
Please help me…
You have to write
25%%instead of25%.to escape the ‘%’ sign.