HP SunSoft Pascal 4.0 Uživatelský manuál Strana 174

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 333
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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'
Zobrazit stránku 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 332 333

Komentáře k této Příručce

Žádné komentáře