Message-Id: <3.0.16.19980215234527.35a77b40@hem1.passagen.se> Date: Sun, 15 Feb 1998 23:45:36 -0500 To: "Jamie Love" From: Peter Palotas Subject: Re: xor and how to do it Cc: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk At 22.28 1998-02-16 +1300, you wrote: >Hello, >In writing my game, I have come across a few occurances where a bitwise xor >would be extremely helpful. > >I know and is &, and or is | but what is xor?? >Is it possible. Xor should be '^' if I'm not mistaken, i.e. int i = 5 ^ 3; >Also, what are the use of the keywords and, xor and or?? Don't understand your question here. :( There are no keywords in C/C++ named 'and' 'or' or 'xor'! -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ****************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAVE SO FEW DONE SO MUCH FOR SO MANY! * ******************************************************