aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user/cpp
blob: 9b413ed295d871027aef17d5a272cde77a168468 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@Chapter
  @Title { C and C++ Programs }
  @Tag { cprint }
@Begin
@LP
This chapter describes how to typeset C and C++ program text using the
cp. @Index @Code "@CP"
c. @Index { C++ }
@Code "@CP" symbol in conjunction with the @Code c2lout filter.  The
@Code "@CP" symbol looks after printing keywords in bold, variables
in italic, and so on, depending on a style you choose.  It does not lay
out programs in the sense of choosing indenting, it preserves the layout
you give to the program.  From now on, `C' means `C or C++' wherever
it occurs.
@PP
It is possible to simply print out one or more C files; we call this
@I { stand-alone mode }.  Alternatively, the C program text may be printed
as part of a larger Lout document; we call this @I { embedded mode }.
@BeginSections
@Include { cpp_lone }
@Include { cpp_embe }
@Include { cpp_chan }
@Include { cpp_comm }
@Include { cpp_tabs }
@Include { cpp_eiff }
@EndSections
@End @Chapter