
Listing 6

//
// operator=
//
rational &rational::operator=(const rational &r)
	{
	num = r.num;
	denom = r.denom;
	return *this;
	}
