Thread
:
Relay program?
View Single Post
#
2
29-01-2008, 16:31
Alan Anderson
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Re: Relay program?
Comparisons don't "chain" like that in C. Do it this way:
Code:
if ( (125 < x) && (x < 129) )
The inner parentheses aren't strictly necessary, but I think they make it much more readable.
__________________
::
qo'mey poSmoH Hol
:: language opens worlds
Alan Anderson
View Public Profile
Visit Alan Anderson's homepage!
Find all posts by Alan Anderson
Find CD-Media Photos by Alan Anderson
Find CD-Media Papers by Alan Anderson