Last edited on
opnd is an unsigned int. "opnd" doesn't mean anything by itself. It's just the name of the variable. It could have been named "apple" or "susie" or almost anything else.

For the second part of your question, you should look into bitwise operators in C++.
This page looks like it explains it.
Check out the sections (or just read it all):
- Bitwise AND
- The Bitwise Complement

Anything AND'd with 0 is 0.
Anything AND'd with itself is itself.
~ flips each bit. 0 goes to 1, and 1 goes to 0.
Last edited on
Please leave your example up so others can learn from it. This is supposed to be a community where we all help each other for the benefit of everyone.
@DrewRiddles is right. This is the purpose of a forum. If you are deleting your posts, it will be a greedy thing to do... :/
Topic archived. No new replies allowed.