Emily
2011-02-03 19:29:53 UTC
It gives me these:
read_sonde.c:67: error: expected declaration specifiers or ‘...’ before ‘U’
read_sonde.c:68: error: expected declaration specifiers or ‘...’ before ‘V’
read_sonde.c:71: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token
int calc_winds
(
float wind_dir;
float wind_spd;
float winds[];
U==-1*wind_spd*sin((wind_dir*M_PI)/180);
V==-1*wind_spd*cos((wind_dir*M_PI)/180);
FILE *output = fopen("wind.txt", "w");
if (output)
{
fprintf(output, "%d,%d", U, V);
}
return(winds)
)