O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summing Up

This lesson has shown how to use more complex bool expressions. You learned how to use a function to control the complexity of nesting loops inside other loops. You also learned how to use bool variables to avoid duplicating a bool expression in two or more control statements (such as an if statement and a do/while loop), thus making your programs easier to understand and maintain.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required