Summing Up

This lesson has shown how to separate an existing program into separately compilable modules, how to use #include for your own modules, how to safely use the same name in multiple modules using the namespace statement, and how to use the scope resolution operator to refer to the namespace that holds a function.

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.