| delorie.com/archives/browse.cgi | search |
| From: | brannon AT camalott DOT com |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | please help with error "int main()" |
| Date: | Mon, 16 Nov 1998 21:07:45 GMT |
| Organization: | http://extra.newsguy.com |
| Lines: | 19 |
| Message-ID: | <365092d6.6236108@cnews.newsguy.com> |
| NNTP-Posting-Host: | p-906.newsdawg.com |
| X-Newsreader: | Forte Free Agent 1.11/32.235 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Someone please help me with this problem. First simple program wont
compile.
hello5.cpp
#include <iostream.h>
int main ()
{
cout << "Hello World!\n");
return 0;
}
error message looks like this
hello5.cpp: in function 'int main()':
hello5.cpp:5: parse error before ')'
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |