Summary

In this hour you learned what a statement is. You also learned that an expression is any statement that returns a value. You learned that whitespace can be used to make your program more readable, and you saw how to use the mathematical, logical, and assignment operators. You saw how to replace a single statement with a block of statements using braces.

You also learned how to use the prefix and postfix operators, as well as the relational operators. You learned how to use the if statement, how to use else, and how to create complex and nested if statements.

Get Sams Teach Yourself C++ in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.