Mail Archives: djgpp/1999/02/22/18:50:57
Bjørn Hansen wrote:
> Michael Stefan wrote:
>
> > You tried to use the "\n" (newline) command from C instead of endl. It
> > should look like this
> > #include <iostream.h>
> >
> > void main()
> > {
> > cout<<"Hello world"<endl;
> > return 0;
> > }
>
> I havn't done a whole bunch of progremming in C++ so I was wondering why you
> declared main as void and then have it return a value?
Hee hee... Excellent. That's a bug and a very common one. It should,
by all standards, be `int main'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -