HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 288

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 287
264 Pascal 4.0 Users Guide
A
Example
The Pascal program,
warning.p
program warning_example(output);
{ This program demonstrates the use of the
%warning compiler directives. }
%var blue
begin
%if blue %then
writeln('The color is blue.');
%else
%warning 'Color not defined'
%endif
end. { warning_example }
The output when you compile
warning.p without the
–config option
hostname% pc -xl warning.p
Fri Mar 3 15:03 1995 warning.p
Line 12:%warning 'Color not defined'
w -------------------^----- 'Architecture not defined'
Seitenansicht 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare