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

Logical OR operator, how?

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







Logical OR operator, how?
PostPosted: Tue Jun 29, 2004 12:07 am     Reply with quote

Hi.

Simple question; what is wrong?

if (( A==1 ) && (( B==1 ) ll ( C==1 )))

error: Expecting a close param
Embarassed

How OR operator works?

Regards
Sir_mane
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 29, 2004 12:41 am     Reply with quote

Quote:
if (( A==1 ) && (( B==1 ) ll ( C==1 )))
error: Expecting a close param

You don't have the "vertical line" character in there.
You've got lower-case "LL" in there. You can see
this if you display that line with the Code tags on
this board. The Code tags use the Courier font:
Code:
if (( A==1 ) && (( B==1 ) ll ( C==1 )))

You need to use a font in your C editor that shows the
difference between between a lower-case L and
the vertical line symbol. Don't use Arial.
Use Courier or Fixed Sys or something like that.
sir_mane
Guest







Thanks.
PostPosted: Tue Jun 29, 2004 12:50 am     Reply with quote

I copy => paste that from ccs help
and it give ll ( lower-case "LL" ).
so I didn't know that it should be
vertical line symbol.

Now it's working.
Thank you PCM programmer
Again...
Laurent Chouinard



Joined: 12 Sep 2003
Posts: 43

View user's profile Send private message

PostPosted: Tue Jun 29, 2004 11:20 am     Reply with quote

In my opinion, the best font for coding:

Profont

Of course, for this one, it's recommended to have an LCD display or a CRT of good quality (sharp). With this font you can pack quite a lot of highly readable code at 8-pixels size, and it shows all the similar characters to be quite different, like the number one, the letters i and L.
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