Hi,
I am trying to learn C++ and I don't know how to use bitmasks properly.
if( u & integer == 0 ) return 0;
else return 1;
I think I don't understand what the bitmask is actually doing. Can someone explain what this code is doing?
Thanks.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Using BitmasksThreaded View
|
Click Here to Expand Forum to Full Width |