How to avoid sprintf ()% errors so that they are not recognized as variables?

So is this possible? If I ever wanted sprintf(str, "%doodle %d", var); print "% doodle 123" and not "123oodle", how can I stop the first% d from processing?

+6
c ++ windows
source share
1 answer

%% avoids%

+15
source share

All Articles