Personally I like using this for a sort of on/off switch: bool val; // .. val ^= 1;
Maybe that's just stupid but I'm kind of used to it, lol. :p
Personally I like using this for a sort of on/off switch: bool val; // .. val ^= 1;
Maybe that's just stupid but I'm kind of used to it, lol. :p