Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if((value & 0b11001)>0) //not sure this is valid syntax, but you get the idea
  2. {
  3. //do stuff
  4. }
  5.  
  6. if(value[0] || value[3] || value[4])
  7. {
  8. //...
  9. }
  10.  
  11. bool GetBit(int which)
  12. {
  13. return value & (1 << which)>0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement