Program Construction And Management; Units - Sun Microsystems SunSoft Pascal 4.0 User Manual

Hewlett-packard user guide printer printer
Table of Contents

Advertisement

Units

Program Construction and
Management
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
Libraries
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:
program include (output);
#include "includefile"
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.
4
page 67
page 74
67

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SunSoft Pascal 4.0 and is the answer not in the manual?

Questions and answers

Table of Contents