Implementing Bitwise Operators
Posted on 2003-02-26
I am wondering if anyone knows how to implement the logical not (!) operator. I am developing a program, and it requires me to implement the logical NOT operator using only >> << + | & and ~. Yes, this is for a class, and I understand if you feel morally obliged to not give me the whole answer, but I have been working on this for quite a while now, and I am completely stumped. If someone might be able to give me a hint, that would be very much appreciated.