HP SunSoft Pascal 4.0 Manual de usuario Pagina 174

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 333
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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'
Vista de pagina 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 332 333

Comentarios a estos manuales

Sin comentarios