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

How to display % symbol on lcd ?

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



Joined: 08 Sep 2011
Posts: 202

View user's profile Send private message

How to display % symbol on lcd ?
PostPosted: Sat Mar 03, 2012 12:45 pm     Reply with quote

How can I display % ?
When I use as...
Code:

lcd_gotoxy(1,1);
printf ( lcd_putc, "\fO\P Load%lu ", outlod);     
lcd_gotoxy(11,1);
printf(lcd_putc, "%");

I found error as
Quote:

Printf variable count (%) does not match actual count ::

Guide me, how can I display
O\P Load % ?
_________________
sahu
temtronic



Joined: 01 Jul 2010
Posts: 9228
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Mar 03, 2012 5:33 pm     Reply with quote

open your project...
...press F11...
......select Contents...
.........select BuiltIn Functions...
............select all builtin Functions...
...............select printf()...
.................read the paragraph entitled...Function:...
..................read the 6th sentence...

CCS staff spent a LOT of time creating a great HELP system, almost everything you NEED to know about the compiler is in the onscreen HELP system. Some stuff is still valid after 20 years though I do prefer reading the coilbound manual!
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