3.1 OBJECTIVES
3.2 PRE-LAB READING
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.
x==y
true if x is equal to y
x!=y
true if x is not equal to y
x>y
true if x is greater than y
x>=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