Raised This Month: $51 Target: $400
 12% 

[Quick Question] Percent Symbol in String?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlfan
Junior Member
Join Date: Dec 2014
Old 03-22-2016 , 22:32   [Quick Question] Percent Symbol in String?
Reply With Quote #1

How may I put a percent symbol inside a string instead of recognizing %s %d etc?

EDIT: Tried #define PERCENT_SYMBOL "%" then display as %s (string) couldn't get it working. Always blank.
EDIT2: Tried escaping the character with ^ and \. No luck yet.
EDIT3: Tried using double percent symbol in string. Success! Topic can be locked now.


Much thanks in advance,
HL Fan



Last edited by hlfan; 03-22-2016 at 22:49.
hlfan is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 03-23-2016 , 02:13   Re: [Quick Question] Percent Symbol in String?
Reply With Quote #2

write twice '%%' in the string
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode