8.2
C Pascal
Fortran Generic Basic
x y z
C typedef Pascal type
C
typedef float Coordinate_t / for coordinate variables /
Coordinate_t float
float C
Routine1(...)
{
Coordinate_t latitude; /* latitude in degrees */
Coordinate_t longitude; /* longitude in degrees */
Coordinate_t elevation; /* elevation in meters from earth center */
...
}
...
Routine2 ...
{
Coordinate_t x; /* x coordinate in meters */
Coordinate_t y; /* y coordinate in meters */
Coordinate_t z; /* z coordinate in meters */
...
}
x y z latitude,longitude,elevation Coordinate_t
typedef
typedef double Coordinate_t; /* for coordinate variables */
Pascal
30 30
30