Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How Do I...

Name: Anonymous 2008-08-29 13:31

...access individual bits in a byte in C++?

Name: Anonymous 2008-08-29 22:30

>>16
Automatic masking seems pretty useless TBH and your `int16' already exists as short/int and as int_least16_t/int_fast16_t with <stdint.h>.

>>17
Code does not have to make assumptions about the limits of integer types; it can consult the constants from <limits.h>.

>>18
Read http://home.att.net/~jackklein/c/inttypes.html

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List