Advertisement

initlializing variables with binary value

Started by February 21, 2000 02:25 PM
9 comments, last by Ridcully 24 years, 7 months ago
Ummm, what language are you all programming in? C/C++ DOES NOT support binary literals the way you''re describing. Octal, yes. Hex, yes. Decimal, of course. Binary, NO. kressilac is on the right track, but if you''re using C++, and you actually want to store a collection of binary values in bits, then look into bitset<>, part of the standard library...

-Brian

This topic is closed to new replies.

Advertisement