Summing Up

In this lesson, you learned how to get input from the user into a numeric variable. You learned about the pitfalls of integer arithmetic and saw how terrible errors can happen when a program gets input from the user. In the next lesson you will learn how to recover from such errors.

Get SAMS Teach Yourself C++ in 10 Minutes SECOND 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.