Logic Expressions in C++