Re: Complex Number Support



Jon Evans wrote:
> I had to mod the sqrt line by adding "std::" in front of the 'sqrt' -
> I only mention this as having never used this kind of thing I thought
> I'd check that this wasn't indicative of me having failed to do
> something else.

You left out the

using namespace std;

from Victor's example. IMO explicitly qualifying std::sqrt is the
prefereable style anyway. The using satement makes for cleaner examples
but I wouldn't use it for production code.

-cd


.



Relevant Pages