1. From RedHat Linux manual page
Your C-compiler can work with complex numbers if it supports the C99
standard. Link with -lm. The imaginary unit is represented by I.
/* check that exp(i*pi) == -1 */
#include
#include
main() {
double pi = 4*atan(1);
complex z = cexp(I*pi);
printf("%f+%f*i\n", creal(z), cimag(z));
}
I've never used it before. Just check the manual pages.
2. You need to define __USE_LARGEFILE64
Good luck.
回複:C programming problem
所有跟帖:
•
Thanks, where find the manual
-yuricc-
♀
(62 bytes)
()
06/17/2005 postreply
11:02:12
•
I see now
-yuricc-
♀
(94 bytes)
()
06/17/2005 postreply
11:13:17