From: yurig AT amdocs DOT com (Yuri Gonik) Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: CIN COUT Date: Wed, 05 Mar 1997 12:45:51 GMT Organization: Amdocs Inc. Lines: 28 Message-ID: <331d6a76.81416160@speedy> References: <331BC0D5 DOT 5CB AT aracnet DOT com> <01bc2905$e808d700$8e4140c3 AT dezepc DOT cistron DOT nl> NNTP-Posting-Host: 204.151.98.31 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I think main() should be of type int ... Regards, Yuri. On 5 Mar 1997 01:39:08 GMT, "Joost F. Jacob" wrote: > > >Brian wrote in article <331BC0D5 DOT 5CB AT aracnet DOT com>... >> Can Someone please tell me what is wrong with the following program. >> I try to compile it on djgpp but I get 'undeclared' or something error. >> Maybe I don't have the right iostream.h file? >> #include >> main() >> { >> cout << "Hello, World"; >> } >> Thanks in advance. - bardito AT aracnet DOT com >> >Add the line >return 0; >as last line in main() > >maybe thats all, i dont know that compiler of yours > >Joost