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