HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 239

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 238
Error Diagnostics 215
9
To make the assignment statement work, you must declare a type and use it to
declare the variables, as follows:
Alternatively, you could use the declaration:
The assignment statement then works.
Unreachable Statements
Pascal flags unreachable statements. Such statements usually correspond to
errors in the program logic, as shown in the following example:
type
r = record
a: integer;
b: char;
end;
var
x: r;
y: r;
x, y : record
a: integer;
b: char;
end;
The Pascal program,
unreached.p
program unreached_example(output);
label
1;
begin
goto 1;
writeln('Unreachable.');
1:
writeln('Reached this.');
end. { unreached_example }
Seitenansicht 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare