Dear groups,
I try to know how to use cabs() function from this
example:
#include <stdio.h>
#include <math.h>
struct complex
{
double x, y;
};
int main(void)
{
struct complex z;
z.x = 1;
z.y = 2;
printf("%f", cabs(z));
return 0;
}
and i get the error:
" error C2664: 'cabs' : cannot convert parameter 1
from 'complex' to '_complex' "
can anyone explain the reason why?, and how to correct
it?
thanks
regards,
Duong Van Yen
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow