次のキーワードの目的は何ですか?
and bitand compl not_eq or_eq xor_eq
and_eq bitor not or xor
それらがすべて以下と直接同等である場合:
&& & ~ != |= ^=
&= | ! || ^
次のキーワードの目的は何ですか?
and bitand compl not_eq or_eq xor_eq
and_eq bitor not or xor
それらがすべて以下と直接同等である場合:
&& & ~ != |= ^=
&= | ! || ^
http://en.wikipedia.org/wiki/Iso646.h
iso646.h "...プログラマーがC言語のビット単位および論理演算子を使用できるようにする多数のマクロを定義します。これらの演算子は、ヘッダーファイルがないと、一部の国際キーボードや非QWERTYキーボードではすばやく簡単に入力できません。
ファイル名はISO646標準を参照しています。これは、7ビットの文字セットで、地域ごとにさまざまなバリエーションがあり、C演算子で使用される句読点の代わりにアクセント付き文字が使用されているものもあります。」
そのため、次のようなクレイジーなコード詩を書くことができます。
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 ));