What is the purpose of the keywords "and", "or", etc. In C ++?

What are the following keywords?

and      bitand   compl   not_eq   or_eq   xor_eq
and_eq   bitor    not     or       xor

If all of them are the direct equivalent:

&&       &        ~       !=       |=      ^=
&=       |        !       ||       ^
+5
source share
2 answers

http://en.wikipedia.org/wiki/Iso646.h

iso646.h "... determines the number of macros that allow programmers to use bitwise and logical C language operators that without a header file cannot be quickly or easily printed on some international and non-QWERTY keyboards.

The file name refers to the ISO646 standard, a 7-bit character set with several regional options, some of which have accented characters instead of the punctuation used by C.

+13
source

, :

class jack
{
   jack();
   jack( jack & jill );
   jack& came_tumbling( int after );
   jack& fell( jack & jill ); 
   jack& operator &= ( jack & jill );
   jack& operator & ( jack & jill );
}

void to_fetch( int pail );

int a_pail;
int after;
jack broke_his_crown;
jack went_up_the_hill;
jack down;

jack and jill = went_up_the_hill;
to_fetch( a_pail ); // of water
jack fell( down and broke_his_crown 
and jill.came_tumbling( after ));
+7

All Articles