c++中的关系运算符

c++提供了不同的操作符来方便而简洁地完成不同的任务,如算术操作符、关系操作符、赋值操作符、位操作符等。在讨论关系操作符时,将其定义为用于比较两个值的操作符。在关系运算符中,当比较两个值或表达式时,比较产生一个布尔值(true或false)。True通常用“1”表示,false通常用“0”表示。

The relational operators are binary operators that work with two values or operands. The C++ language facilitates us with six different relational operators which are greater than “>”, greater than equal to “>=”, less than “