CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Printing restricted words

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ailatech



Joined: 24 Jul 2007
Posts: 7
Location: Jordan

View user's profile Send private message Yahoo Messenger MSN Messenger

Printing restricted words
PostPosted: Fri Dec 04, 2009 1:56 pm     Reply with quote

How can i print a restricted word like "%"?
_________________
Eng. Haytham Shyouk
B.A. Electronics Engineering
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Dec 04, 2009 2:41 pm     Reply with quote

I assume you want to use printf?

You need to get you a copy of the C language manual or use the available search tools like Google. Or better yet, read about printf() in the CCS Manual on page 199 that says:

A %% will output a single %.
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 04, 2009 2:42 pm     Reply with quote

Here's a tutorial on printf. Save this on your desktop as a reference.
http://colton.byuh.edu/courses/tut/printf.pdf
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Dec 04, 2009 2:45 pm     Reply with quote

PCM,
Thats a really nice concise document on Printf.
Did you already know about it or find it with Google?
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 04, 2009 2:47 pm     Reply with quote

I found it with Google after a few minutes of searching for something
that was good.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group