On Mon, Feb 16, 2004 at 10:55:36PM -0500, Roberto Sanchez wrote:
> Johann Koenig wrote:
> >On Tuesday February 17 at 02:22am
> >Werner Mahr <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Am Dienstag, 17. Februar 2004 00:29 schrieb Debian User:
> >>
> >>
> >>>#include<iostream>
> >>>#include<string>
> >>>#include<cctype>
> >>>#include<iomanip>
> >>>#include<algorithm>
> >>
> >>The days I used C daily are long behind, but I think you should try
> >>#include <iostream> and so on.
> >
> >
> >IIRC, isn't it
> >#include<iostream.h>
> >(note the .h)?
>
> Nowadays, the standard headers are all sans .h.
>
> -Roberto
Got here late. Didn't see thread. Use g++ instead of gcc. The .h is
optional with g++ 2.95.4 and g++ 3.0.4. Compiling with -Wall didn't
generate a warning when iostream.h was used. IIRC I did see a nastygram
about .h being deprecated, but I didn't see it on the following:
------test.cpp-------------
#include <iostream.h>
main()
{
cout << "hello\n";
}
-------------
compiled with:
[EMAIL PROTECTED]:~$ g++-3.0 -Wall -o test test.cpp
test.cpp:4: warning: ISO C++ forbids declaration of `main' with no type
[EMAIL PROTECTED]:~$
--
Mike
Two hundred years ago, we note mischievously, the average American or
European had a standard of living not very much superior to that of the
average man in India or China. -- dailyreckoning.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]