Message-Id: <199811171648.QAA13807@remus.clara.net> From: "Arthur" To: Subject: RE: please help with error "int main()" Date: Tue, 17 Nov 1998 16:47:59 -0000 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <365092d6.6236108@cnews.newsguy.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > Someone please help me with this problem. First simple program wont > compile. > > hello5.cpp > > #include > > 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 ')' This line contains your problem: the "5" after the hello5.cpp refers to the line number at which the error occurs. The line should read cout << "Hello World!\n"; ^ note: no closing bracket James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819