HP SunSoft Pascal 4.0 Manuale Utente Pagina 174

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 333
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 173
150 Pascal 4.0 Users Guide
7
Arguments Passed by Value
C++ arguments can be passed by value. In this section, we describe how they
work with Pascal.
When you compile the Pascal
routine without the
-calign option, the program
does not work correctly.
hostname% pc -c DayWeather.p
hostname% CC DayWeather.o DayWeatherMain.cc -lpc
hostname% a.out
day = ''
weather = ' Sun'
Compile with the -calign
option. The program now
works correctly.
hostname% pc -calign -c DayWeather.p
hostname% CC DayWeather.o DayWeatherMain.cc -lpc
hostname% a.out
day = 'Sunday'
weather = 'Sunny'
Vedere la pagina 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 332 333

Commenti su questo manuale

Nessun commento