delorie.com/archives/browse.cgi | search |
From: | Dazzling Dazz <O DOT J DOT D DOT Habibi AT ncl DOT ac DOT uk> |
Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp |
Subject: | Re: CIN COUT |
Date: | 5 Mar 1997 13:08:31 GMT |
Organization: | University of Newcastle upon Tyne |
Lines: | 35 |
Message-ID: | <5fjr8f$3ko@whitbeck.ncl.ac.uk> |
References: | <331BC0D5 DOT 5CB AT aracnet DOT com> |
NNTP-Posting-Host: | eighton.ncl.ac.uk |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 <iostream.h> main() { cout << "Hello, World"; } Thanks in advance. - bardito AT aracnet DOT com +++++++++++++++++++++++++++ wouldn't you have to declare main as a void or int? Like this: void main() { ... return; } OR int main() { ... return 0; } I've never used that compiler so this is probably wrong, sorry.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |