How the hell do you specify a number as binary in C++?
0x for hex...and?
0x for hex...and?
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.
#define bin2int(b) (b&1)|(((b/10)&1)<<1)|(((b/100)&1)<<2)|(((b/1000)&1)<<3)
int i=bin2int(1101);