HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 31

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 30
7
Pascal Programs
2
This chapter cites two examples that illustrate how to compile and execute a
program. It also explains how to use the traceback facility to find out why a
program fails. The sections are:
Building a program with SPARCompiler Pascal requires three steps:
1. Writing a program in Pascal using an editor and saving it in a file with a
.p or .pas suffix
2. Compiling the .p or .pas file using the pc command
3. Executing the program by typing the name of the executable file at the
system prompt
A Simple Pascal Program
The following is a simple Pascal program that converts temperatures from
Fahrenheit to Celsius. Use an editor to type the code on your system and save
it in a file called temp.p.
A Simple Pascal Program page 7
An Interactive Pascal Program page 10
Where Did My Program Fail? page 13
Seitenansicht 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare