Message-Id: <199802160223.PAA06125@fep1-orange.clear.net.nz> From: "Jamie Love" To: "Peter Palotas" Cc: "DJGPP mailing list" Subject: Re: xor and how to do it Date: Tue, 17 Feb 1998 03:24:22 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Precedence: bulk ---------- > From: Peter Palotas > To: Jamie Love > Cc: djgpp AT delorie DOT com > Subject: Re: xor and how to do it > Date: Monday, February 16, 1998 05:45 > > 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?? > Xor should be '^' if I'm not mistaken, i.e. int i = 5 ^ 3; I thought so, but for some reason my implementation didn't work i used buttonFlags ^= BUTTON_FLAG_DISABLED but I'll try it again, it probably was my mistake somewhere else in the code > >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'! I mean in rhide, these works come up white (as keywords), what exactly does this mean then? I didn't think they were keyworks (or should i say, i knew they wern't) Jamie Love Part of the Silicon Wanderers (http://www.geocities.com/SiliconValley/Horizon/4532) e-mail me at jamie DOT love AT clear DOT net DOT nz ICQ: 7493228