Page 1 of 1
Binary

Posted:
Mar 11, 2002 @ 11:33pm
by RICoder
How the hell do you specify a number as binary in C++?
0x for hex...and?

Posted:
Mar 12, 2002 @ 12:04am
by James S
01010101
1, 2, 4, 8, 16, 32, 64, 128
so I just typed in the number 170... I'm not sure if that's what you mean, but it might be.

Posted:
Mar 12, 2002 @ 12:39am
by Dan East
You can't. You have to enter them as Hex, Decimal or Octal.
Dan East

Posted:
Mar 12, 2002 @ 6:35am
by RICoder
Thanks Dan, I went digging and saw that myself.
You'd think after coding for 19 years I'd know that...
As for Moose, thanks for the binary lesson.

Posted:
Mar 12, 2002 @ 9:08am
by Dan East

Posted:
Mar 12, 2002 @ 9:12am
by Dan East

Posted:
Mar 12, 2002 @ 2:33pm
by James S
well it is only version 0.1, Dan. Not even you, the almighty Dan East, can do it perfect the first time.

Posted:
Mar 13, 2002 @ 12:10am
by Digby

Posted:
Mar 13, 2002 @ 12:55am
by Dan East