O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Is a Module?

Modules are files that can be compiled separately. The result of compiling these modules is a set of compiler output files. These files can be brought together by a linker to generate a single program you can run.

You've already made use of a module—iostream—in previous lessons.

Two files—a header file (ending in .h) and an implementation file (ending in .cpp)—make up a C++ module. main.cpp is the only exception to this rule. It is an implementation file that never has an accompanying header file.

Implementation

The part of a program that contains the code that can be run. A header declares the allowable ways to call on that code. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required