67
Program Construction and
Management
4
This chapter is an introduction to the methods generally used to construct and
manage programs using Pascal. It describes units and libraries in two separate
sections:
Units
For many reasons, it is often inconvenient to store a program in a single file, as
in the case of a very large program.
You can break up a program in several ways. Perhaps the simplest way is to
use an
include
file. An
include
file is a separate file that is copied in by the
compiler when it encounters an
include
compiler directive. For example, in
the following program:
the line
#include "includefile"
is a compiler directive to
cpp
(1), the
Pascal compiler’s preprocessor. The directive instructs
cpp
(1) to find the file
includefile
and copy it into the stream before continuing.
Units
page 67
Libraries
page 74
program include (output);
#include "includefile"
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......