SyntaxFix
Write A Post
Hire A Developer
Questions
C++ operations are: & | ^ ~ (for and, or, xor and not bitwise operations). Also of interest are >> and <<, which are bitshift operations.
So, to test for a bit being set in a flag, you would use: if (flags & 8) //tests bit 4 has been set