Generally, you choose a source-code file name, such as
box_car
, to describe the file's contents, and you choose a
source-code extension, such as cxx
, to indicate
that the file contains source code, producing a complete file name, such as
box_car.cxx
. Conventions on file extensions for C++ source code
vary: some programmers preferand some compilers requireC
,
cc
, or cpp
.
The cxx
variant is supposed to suggest two plus signs rotated
45°: many operating systems do not permit real plus signs to
appear in names.