This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in egcs-1.1.2?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]