次の方法で共有


C++ Relational and Equality Operators

The relational and equality operators determine equality, inequality, or relative values of their operands. The relational operators are shown in the following table.

Relational and Equality Operators

Operator

Meaning

==

Equal to

!=

Not equal to

<

Less than

>

Greater than

<=

Less than or equal to

>=

Greater than or equal to

See Also

Reference

Expressions with Binary Operators

C++ Operators

Operator Precedence and Associativity