This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bug in egcs-1.1.2?
- To: ssiddiqi@ipass.net
- Subject: Re: bug in egcs-1.1.2?
- From: Mike Fabian <mike.fabian@it-mannesmann.de>
- CC: cygwin@sourceware.cygnus.com
- References: <199905181520.LAA17067@pluto.ipass.net> <009001bea142$412e7630$29acdfd0@InspirePharm.Com>
- Reply-to: mike.fabian@it-mannesmann.de
Suhaib> Should these
Suhaib>
Suhaib> #include <iostream>
Suhaib> #include <string>
Suhaib> #include <utility>
Suhaib> #include <deque>
Suhaib> #include <list>
Suhaib>
Suhaib>
Suhaib> NOT be
Suhaib>
Suhaib> #include <iostream.h>
Suhaib> #include <string.h>
Suhaib> #include <utility.h>
Suhaib> #include <deque.h>
Suhaib> #include <list.h>
Suhaib>
Suhaib> or whatever????
Both should be possible. When using <iostream> everything in there
gets wrapped in the namespace std, i.e. one has to write:
std::cout << str << std::endl;
or alternatively:
using namespace std;
cout << str << endl;
When one uses the old fashioned way of including <iostream.h>
the std:: and `using namespace std' are not used.
Mike
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com