7

Simple Types Passed by Reference

Simple types pass in a straightforward manner, as follows:

The C++ function, SimRef.cc

extern "C" void SimRef (

char &t, char &f, char &c,

int &i, short &s,

float &r, double &d)

{

t = 1; f = 0; c = 'z'; i = 9; s = 9;

r = 9.9; d = 9.9;

}

156

Pascal 4.0 User’s Guide

Page 180
Image 180
HP SunSoft Pascal 4.0 manual Simple Types Passed by Reference, C++ function, SimRef.cc, 156