Mail Archives: djgpp/2002/07/18/18:36:43
In article <3405-Wed17Jul2002211102+0300-eliz AT is DOT elta DOT co DOT il>,
eliz AT is DOT elta DOT co DOT il says...
> > From: "Diogo Abdalla" <mollsem AT hotmail DOT com>
> > Date: Wed, 17 Jul 2002 05:49:18 +0000
> >
> > Well, following the instructions of a tutorial I wrote, in Rhide, this
> > little code:
> > #include <iostream.h>
> > int main()
> > {
> > cout << "Hello!";
> > return 0;
> > }...
> Did you per chance named your source file something.c? If so, rename
> the file so that it has a .cc or .cpp extension.
Hello.
I think Diogo may need to modernise his C++ as well as naming his
source file correctly. Try this code instead:
#include <iostream>
int main()
{
std::cout << "Hello!" << std::endl;
return 0;
}
I would recommend getting a more up to date tutorial.
Hope this helps,
Ian
- Raw text -