CHAPTER 10

image

Program Files and Preprocessing Directives

This chapter is more about managing code than writing code. I'll discuss how multiple program files and header files interact, and how you manage and control their contents. The material in this chapter has implications for how you define your data types, which you'll learn about starting in the next chapter.

In this chapter you will learn:

  • How header files and source files interrelate
  • What a translation unit is
  • What linkage is and why it is important
  • More detail on how you use namespaces
  • What preprocessing is, and how to use the preprocessing directives to manage code
  • The basic ideas in ...

Get Beginning C++ 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.