1234567
unsigned char b = 0; int a, c; for( c = 0; c < 64; c++ ) { b = c; cout << c << ":"; for( a = 0; a < 8; a++ ) { if( b & (1<<a) ) cout << "1"; else cout << "0"; }; cout << endl; }