yes please, can i read it from a file?
a tried it, but there is still some error, what will i type in my main program 
to call the header or the lookup table?



----- Original Message ----
From: John Matthews <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, August 18, 2008 5:01:33 PM
Subject: [c-prog] Re: Question??


--- In [EMAIL PROTECTED] com, Jefferson Mendoza
<jefferson_mendoza@ ...> 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

    


      

[Non-text portions of this message have been removed]

Reply via email to