I use it every time and it works. I also tried the alternate spelling "&&" and still the comparisons are ignored.
In the list here:
http://www.cppreference.com/wiki/operator_precedence
both && and "and" are recognized as valid.
If you wish your code to be understood, you should use the syntax that the rest of the industry uses. Though and
is acceptable in that list, &&
is the accepted way. In fact I've never seen and
used until now, which is why I figured you had compile errors.
For standards experts: Are all those "extra" operator designations actually in the standard? If so, C++ seems to be looking more FORTran-like today.