HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 278

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 277
254 Pascal 4.0 Users Guide
A
The %enable Directive
The %enable directive sets a conditional variable to true.
Syntax
%enable var1 ..., varN
Comments
A defined conditional variable is enable (true) when it appears in either the
%enable directive or in the -config option. Conditional variables are false
by default.
Theinclude file, bird.h var
a: array[1..7] of char := 'penguin';
b: array[1..6] of char := 'toucan';
%var bird1
The output when you enable
bird1 with the -config option
hostname% pc -xl -config bird1 ifdef.p
hostname% a.out
Bird two is a penguin.
The output when you enable
bird2 with the -config option
hostname% pc -xl -config bird2 ifdef.p
hostname% a.out
Bird two is a toucan.
Seitenansicht 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare