Skip to Main Content
C++ Programming: Visual QuickStart Guide
book

C++ Programming: Visual QuickStart Guide

by Larry Ullman, Andreas Signer
December 2005
Beginner content levelBeginner
528 pages
14h 13m
English
Peachpit Press
Content preview from C++ Programming: Visual QuickStart Guide

12. Namespaces & Modularization

In this chapter we primarily discuss two quite simple and somewhat related concepts. The first is modularization: breaking an application down into subparts. This is accomplished by dividing one’s code into several files, which can then be reassembled when the application is compiled.

The second subject is namespaces, which is kind of new to C++ (and not found in C at all). The more you program and the more complex your applications become, the more necessary namespaces are. You’ve actually been dealing with namespaces without even knowing it throughout the entire book, so it’s about time you formally learn about that subject.

Included in this mix of subjects is another explanation of variable scope: where variables ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming: Visual Quickstart Guide

C Programming: Visual Quickstart Guide

Larry Ullman, Marc Liyanage

Publisher Resources

ISBN: 032135656XPurchase book