C
Chris Saunders
I have not been coding in C for a long time and here is the code I
attampted:
#include <stdio.h>
#include <complex.h>
#include <math.h>
int main(int argc,char *argv[])
{
printf("Testing complex numbers.\n");
double _Complex dc = 1.5+2.3i;
printf("%d\n", cabs (dc));
return 0;
}
I am getting several errors and it seems they all relate to iostream.h line
81 and 91 and there are several different errors. I'm pretty sure that the
problem is some error in my C code. Could anyone assist?
Regards
Chris Saunders
attampted:
#include <stdio.h>
#include <complex.h>
#include <math.h>
int main(int argc,char *argv[])
{
printf("Testing complex numbers.\n");
double _Complex dc = 1.5+2.3i;
printf("%d\n", cabs (dc));
return 0;
}
I am getting several errors and it seems they all relate to iostream.h line
81 and 91 and there are several different errors. I'm pretty sure that the
problem is some error in my C code. Could anyone assist?
Regards
Chris Saunders