2 extern "C" int printf (const char *, ...);
3 template <class T> T max (const T&x, const T&y)
12 complex (double r, double i=0) { re = r; im = i; }
13 friend int operator > (const complex& x, const complex &y);
14 void print () { printf ("re = %g; im = %g;\n", re, im); }
16 int operator >(const complex& x, const complex &y)
18 double c1 = x.re * x.re + x.im * x.im;
19 double c2 = y.re * y.re + y.im * y.im;
30 complex m1 = max (c1, c2);
31 complex m2 = max (c3, c4);