|
-
May 24th, 2001, 05:06 AM
#1
Thread Starter
Lively Member
% sign
sprintf(Percentage, "Completed - %5.2f %",(Value/Max)*100);
How do I get the second % sign to go into my string?
-
May 24th, 2001, 02:59 PM
#2
Frenzied Member
Not sure, but I guess you should use the escape character (\)
So that would be
Code:
sprintf(Percentage, "Completed - %5.2f \%",(Value/Max)*100);
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
May 24th, 2001, 04:23 PM
#3
Monday Morning Lunatic
% is _vsnprintf specific so try %%. (it's not escaped by the compiler)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|