Answer to Question 23D-4

double re(const Complex& z)
{
  return z.repart;
}