Chapter 7: Problem 16
Suppose that you have the following statements: string str1, str2; cin >> str1 >> str2; if (str1 == str2) cout << str1 + '!' << endl; else if (str1 > str2) cout << str1 + " > " + str2 << endl; else cout << str1 + " < " + str2 << endl; Answer the following questions: a. What is the output if the input is Programming Project? b. What is the output if the input is Summer Trip? c. What is the output if the input is Winter Cold?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.