Re: Complex Number Support
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 06:48:45 -0700
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
.
- Follow-Ups:
- Re: Complex Number Support
- From: Victor Bazarov
- Re: Complex Number Support
- References:
- Complex Number Support
- From: Jon Evans
- Re: Complex Number Support
- From: Victor Bazarov
- Re: Complex Number Support
- From: Jon Evans
- Complex Number Support
- Prev by Date: Re: How does strtok work ???
- Next by Date: Re: Complex Number Support
- Previous by thread: Re: Complex Number Support
- Next by thread: Re: Complex Number Support
- Index(es):
Relevant Pages
|