On 28.05.04 Tobias Hientzsch (t_hientzsch@gmx.de) wrote:
Und wenn das alles nicht funktioniert, gibts immer noch Perl:
#include <stdio.h>
double sqrt(double x){ char s[100]; sprintf(s,"perl -e "print sqrt(%lg)"",x); FILE *p=popen(s,"r"); fscanf(p,"%lf",&x); pclose(p); return x; }
Du hast den Smiley vergessen?
drachi:[hille] >gcc z.c z.c: In function `sqrt': z.c:6: parse error before `*' z.c:7: `p' undeclared (first use in this function) z.c:7: (Each undeclared identifier is reported only once z.c:7: for each function it appears in.) drachi:[hille] >
H.