![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395165x1.png)
7
The C++ main program,
SamRefMain.cc
The commands to compile and execute SamRef.p and SamRefMain.cc
#include <stdio.h>
extern "C" void SamRef (
char &,
char &,
char &,
int &, short &,
float | &, |
|
|
|
double | &); |
|
|
|
int main(void) |
|
|
| |
{ |
|
|
|
|
char | t, | f, | c; |
|
int | i; |
|
|
|
short | s; |
|
|
|
float | r; |
|
|
|
double | d; |
|
|
|
SamRef (t, f, c, i, s, r, d); |
| |||
printf ("%08o | %08o %c %d %d %3.1f %3.1f \n", | |||
| t, | f, | c, i, s, r, | d); |
}
hostname% pc
hostname% CC SimRef.o SamRefMain.cc
00000001 00000000 z 9 9 9.9 9.9
Simple Types with the -xl Option
With the
The | 141 |