Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if((value & 0b11001)>0) //not sure this is valid syntax, but you get the idea
- {
- //do stuff
- }
- if(value[0] || value[3] || value[4])
- {
- //...
- }
- bool GetBit(int which)
- {
- return value & (1 << which)>0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement