working with relational operators in C++