View Single Post
  #6   Spotlight this post!  
Unread 26-01-2005, 22:23
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: Weird problem with if statements

You said you're used to working in Java but Java treats = as assignment and == as equality so I'm not sure what's going on there.

As to cascading operators (a = b = c = 1), according to the ISO C standard that will not work. However, our compiler isn't a strict C compiler. For instance, you can use C++ style comments (//comment) and it will work fine even though it's not legal C. It's not particularly important but is useful to know.

Matt