October 2011
Beginner to intermediate
1200 pages
35h 33m
English
In this chapter you’ll learn about the following:
• Separate compilation of programs
• Storage duration, scope, and linkage
• Placement new
• Namespaces
C++ offers many choices for storing data in memory. You have choices for how long data remains in memory (storage duration) and choices for which parts of a program have access to data (scope and linkage). You can allocate memory dynamically by using new, and placement new offers a variation on that technique. The C++ namespace facility provides additional control over access. Larger programs typically consist of several source code files that may share some data in common. Such programs involve the separate compilation of the program files, and this chapter begins ...
Read now
Unlock full access