158
Pascal 4.0 User’s Guide
7
Simple Types
Simple types match with value parameters. See the following example:
The C++ function,
SimVal.cc
extern "C" void SimVal(
char t,
char f,
char c,
short si,
int i,
float sr,
double r,
int& Reply)
{
Reply = 0;
if (t) Reply += 01;
if (! f) Reply += 010;
if (c == 'z') Reply += 0100;
if (si == 9) Reply += 01000;
if (i == 9) Reply += 010000;
if (sr == (float)9.9) Reply += 0100000;
if (r == 9.9) Reply += 01000000;
}
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......