www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/15/17:49:59

Message-Id: <3.0.16.19980215234527.35a77b40@hem1.passagen.se>
Date: Sun, 15 Feb 1998 23:45:36 -0500
To: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: xor and how to do it
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0

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! *
******************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019