COM SCI 31 Lecture Notes - Lecture 5: In C, Empty String
Document Summary
Cin >> ~~~~; // int or double variable. And the next thing you are going to read is a string using getline. Less than or greater than or equal to is >= or <= If something is not equal to something else != If something is equal to another thing == Single equal sign isn"t if two things are equal. So its payrate >= 14. 00 not payrate > 14. 00 if ( x>0) cout <> ~~~~~; else cout < ~~~~~~~~~ ; You can have an if statement without an else aka skip. We need a way to take more than 1 statement and treat it grammatically like its a single statement. To combine you don"t say i went to the beach, i ate some ice cream. I went to the beach and i ate some ice cream.