Ray Devore wrote:
> --- chipaug <[EMAIL PROTECTED]> wrote:
>   
>> --- In [email protected], "pankaj kumar"
>> <[EMAIL PROTECTED]> 
>> wrote:
>>     
>>> Hi Chip,
>>>
>>> 1.Use  <iostream> and  not <iostream.h>
>>>
>>> 2.Use namespace std;
>>>
>>> So the following :
>>>
>>>
>>>
>>>
>>> #include <iostream>
>>>
>>> using namespace std;
>>>       
> The above statement is not necessary since you are
> using std:: in the code below.  Using the std:: with
> the appropriate items makes for cleaner code.  When
> you use "using namespace std;" you have destroyed the
> reason for doing a namespace in the first place.  You
> also get things from the namespace that you do not
> expect.
>   
I'm gonna disagree with you here.  cluttering your code with std:: is 
just that...cluttering your code
and   using namespace std; does NOT destroy the reason for namespaces.  
If it did, it would hardly be part of the language.
your assertion that you get things that you do not expect is also 
somewhat of an overstatement.  That kind of problem comes up only when 
you put such things in header files.
> Ray
>   

Reply via email to