Mail Archives: djgpp/1998/10/28/23:30:39
$)CDear Sir:
I am professionally interested in complex-number manipulation.
Until now, I have used Turbo C 3.0 for the complex-number calculation,
but it has memory limitation in allocating an array.
So, recently, I challenge the calculation on DJGPP.
But I have a problem.
I want the following program to be executed, but this program cannot
be compiled. The filename is 'test.cc.'
Please advise me which part should be modified for 'Compile' and
'Execution.'
Thank you.
#include <stdio.h>
#include <math.h>
#include <complex.h>
complex a ;
int main( void ) {
a = complex( 1. , 0. ) ;
printf( "%.5e\n" , real( a ) ) ;
return 0 ;
}
Sincerely,
Won-Seok Lee
(Researcher)
Applied Electromagnetics Lab.,
Institute of New Media and Communication,
Seoul National Univ.,
Seoul, South Korea
E-mail: lws AT inmac3 DOT snu DOT ac DOT kr
- Raw text -