Summary
Section 6.1 Introduction
Experience has shown that the best way to develop and maintain a large program is to construct it from small, simple pieces, or components. This technique is called divide and conquer (p. 212).
Section 6.2 Program Components in C++
C++ programs are typically written by combining new functions and classes you write with “prepackaged” functions and classes available in the C++ Standard Library.
Functions allow you to modularize a program by separating its tasks into self-contained units.
The statements in the function bodies are written only once, are reused from perhaps several locations in a program and are hidden from other functions.
Section 6.3 Math Library Functions
Sometimes functions are not ...
Get C++ How to Program, 10/e 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.