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