COSC-051 Chapter Notes - Chapter 1-7: Newline, Whitespace Character, Decimal Mark

145 views3 pages

Document Summary

2 questions where need to code small program (15pts each) 2 questions where need to show program output (? pts each) (2pts each) In a code, always have: using namespace std; June1997 mixture#3 legal illegal (cant start with a number) legal legal illegal (can only use letters, digits, and underscores) They tell can to skip n number of characters, or until the character c is encountered. Relational operators: greater than less than greater than or equal to less than or equal to equal to not equal to. Common errors to watch out for: misplaced semicolons no semicolons after the if (condition, missing braces don"t forget the braces, confusing with == in the if (_______) statement, always use ==, not =! Use the % operator (shows what the remainder of the division of 2 numbers is) when trying to find out if a number is even or odd. Both expressions must be true for overall expression to be true.

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