#include <iostream>

#include <string>

using namespace std;

int

main()

{

     bool truth;

     string word1, word2;

 

     truth = 4 > 3;

     cout << "4 > 3 truth is: " << truth << endl;

 

     truth = 7 < 126;

     cout << "7 < 126 truth is: " << truth << endl;

 

     truth = (3 + 3) == 5;

     cout << "(3 + 3) == 5 truth is: " << truth << endl;

 

     truth = 'A' < 'B';

     cout << "'A' < 'B' truth is: " << truth << endl;

 

     cout << int('A') << endl;

     cout << int('B') << endl;

 

     truth = 'a' < 'b';

     cout << "'a' < 'b' truth is: " << truth << endl;

 

     cout << int('a') << endl;

     cout << int('b') << endl;

 

     truth = 'a' < 'A';

     cout << "'a' < 'A' truth is: " << truth << endl;

 

     truth = '3' < 'A';

     cout << "'3' < 'A' truth is: " << truth << endl;

 

     word1 = "billy";

     word2 = "billygoat";

 

     truth = word1 < word2;

     cout << "billy < billygoat truth is: " << truth << endl;

 

     word1 = "cliff";

     word2 = "amanda";

 

     truth = word1 < word2;

     cout << "cliff < amanda truth is: " << truth << endl;

 

     word1 = "fib";

     word2 = "fit";

 

     truth = word1 < word2;

     cout << "fib < fit truth is: " << truth << endl;

 

     word1 = "fib";

     word2 = "fib ";

 

     truth = word1 < word2;

     cout << "fib < fib  truth is: " << truth << endl;

 

     cout << int(' ') << endl;

 

     word1 = "cliff";

     word2 = "cLiff";

 

     truth = word1 < word2;

     cout << "cliff < cLiff truth is: " << truth << endl;

 

     word1 = "123";

     word2 = "1234";

 

     truth = word1 < word2;

     cout << "123 < 1234 truth is: " << truth << endl;

 

     return 0;

}

 

4 > 3 truth is: 1

7 < 126 truth is: 1

(3 + 3) == 5 truth is: 0

'A' < 'B' truth is: 1

65

66

'a' < 'b' truth is: 1

97

98

'a' < 'A' truth is: 0

'3' < 'A' truth is: 1

billy < billygoat truth is: 1

cliff < amanda truth is: 0

fib < fit truth is: 1

fib < fib  truth is: 1

32

cliff < cLiff truth is: 0

123 < 1234 truth is: 1

Press any key to continue . . .