HP SunSoft Pascal 4.0 Instrukcja Użytkownika Strona 274

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 333
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 273
250 Pascal 4.0 Users Guide
A
Example
The %else Directive
The %else directive provides an alternative action to the %if directive.
Syntax
%if expression %then
.
.
%else
.
.
%endif
The Pascal program, debug.p program debug_example(output);
{ This program demonstrates the use of the
%debug compiler directive. }
begin
writeln ('Hello, how are you?');
%debug; writeln ('Fine, thank you.');
end. { debug example }
The output when you compile
debug.p without the –cond
option
hostname% pc -xl debug.p
hostname% a.out
Hello, how are you?
The output when you use –cond hostname% pc -xl –cond debug.p
hostname% a.out
Hello, how are you?
Fine, thank you.
Przeglądanie stron 273
1 2 ... 269 270 271 272 273 274 275 276 277 278 279 ... 332 333

Komentarze do niniejszej Instrukcji

Brak uwag