Advertisement

boolean expresions

Started by March 08, 2003 01:36 PM
2 comments, last by billy bob128 21 years, 8 months ago
hey ive just started programin and readin the tutorial it starts talkin bout boolean expressions which when i try keep comin up with a syntax error can anyone help?
1) What language?
2) What tutorial?
3) What error?
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Advertisement
boolean expressions (i can only speak for C++) equate to either true or false, they are useful for things like flags for fullscreen\sound when they''re either true or false.
The same thing can be done with integers but using a boolean expression makes things clearer.
If you''re using C or C++, it might be that you''re using an assignment operator or one of the bitwise operators instead of boolean operators, eg. = instead of ==, & instead of &&, | instead of || . Also, remember to double check parenthesis and brackets to verify a closing symbol for each opening symbol.

"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man

This topic is closed to new replies.

Advertisement