Unlock access to all the studying documents.
View Full Document
3.2.1 RELATIONAL OPERATORS
LAB 3
–
To learn the use of relational operators
–
To get familiar with strings and practice if statements
–
To get familiar with file reading
In C++ the condition test is done with the help of Boolean expressions. Boolean functions always return
a bool value that is either true or false. The simplest and most common way to construct such an
expression is to use the relational operators.
true if x is not equal to y
true if x is greater than y
true if x is greater than or equal to
y
x<y
true if x is less then y
x<=y
true if x is less than or equal to y