--- In [email protected], Jefferson Mendoza
<[EMAIL PROTECTED]> wrote:
>
> I'm making my second machine program.. it's about azimuth
calculation.. now, my problem is, how to include this table of values
in my source codes... Is there anyway to include this to my main
program? Can you teach me how to make a header file with this table??
> 
> 
> LATITUDE log Am log Bm/Am LATITUDE log Am log Bm/Am 
> (degrees) (degrees) 
> 0 8.509727 0.002949 37 8.509194 0.001884 

Should be: 0 727 0.002949 37 194 0.001884 ?

> 1 726 0.002949 38 169 0.001834 
> 2 725 0.002946 39 144 0.001784 
> 3 723 0.002941 40 118 0.001733 
> 4 719 0.002935 41 93 0.001683
> : 

C or C++? In C, a structure to hold records:

typedef struct
{
    int    lat;
    int    logAm;
    double logBmAm;
} AzRec_t;

Do you want to read the data from a file, or just have a constant
look-up in your code eg.

static const AzRec_t azData[] =
{
    {0, 727, 0.002949},
    {1, 726, 0.002949},
    :

John

Reply via email to