無限ループ

http://www.tietew.jp/cppll/archive/100 からの抜粋


#define ever (;;)
for ever { /* 無限ループ*/ }

http://www.tietew.jp/cppll/archive/100 からの抜粋


const bool _ = true;
for (;_;) { cout << "しく" << flush; }


http://www.tietew.jp/cppll/archive/171 からの抜粋


int _=1;
int m=-1;
while(m<(_^_)>m) cout << "ぺこり" << flush;


触発されて考えたコード。


const bool o = true;
while (o^o^o) cout << "あはは" << flush;


まだある


const bool _ = true;
while ('_');


まだある


int x_x = 1;
while (x_x++) cout << "むかっ#" << flush;


これは動くか微妙


const int _ = -1; const int o = 1;
while (o>_


まだまだ


int Q = -1; int zzZ = -1;
while (-Q-zzZ) cout << "ZZZ" << flush;


そろそろ疲れてきた


bool *_ = new bool(1); const int A = 1;
for (;*_*A;);


ここまでくると、ちと苦しい


const bool orz = true;
while (orz) cout << " ○l ̄l_=3 " << flush;