COM SCI 31 Lecture Notes - Lecture 5: In C, Empty String

57 views7 pages
13 Apr 2018
School

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents