Mail Archives: djgpp/1998/02/01/10:23:14
John M. Aldrich wrote:
> 1) There is no "iostream" in DJGPP. Try iostream.h.
>
> 2) There is no such thing as "std" either. 'cout' is a global object.
>
> 3) If this is what your book is teaching you, throw it out. But I
> thought Stroustrup was better than that.
<iostream> is the C++ standad header name. i am no expert on this, but
AFAIK, use of .h names has been depracated.
in (2), std refers to the standard namespace.
i would not recommend throwing stroustrup out the window. i guess the
way the proposed and accepted C++ standard changed over the last year
has created some discrepancies between gcc and that book (which i think
the 3rd ed is the latest).
al stevens has a good article on similar problems in the september 97
issues of dr dobbs.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -