www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/03/15:51:10

Message-ID: <004001c0a423$64a32d00$6866fea9@desktop>
From: "Steven C. Hendrickson" <stevenhend01 AT earthlink DOT net>
To: <djgpp AT delorie DOT com>
References: <3AA06D35 DOT 649C4A27 AT optonline DOT net>
Subject: Re: Having a problem w/sorce codes
Date: Sat, 3 Mar 2001 12:49:03 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_003D_01C0A3E0.53C07EE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Use Quotes  (") instead of (') for your "Hello World".
Use zero instead of 'o' for your return statement.

Steve
  ----- Original Message -----=20
  From: R B=20
  Newsgroups: comp.os.msdos.djgpp
  To: djgpp AT delorie DOT com=20
  Sent: Friday, March 02, 2001 8:04 PM
  Subject: Having a problem w/sorce codes


  Dear Sir,=20
          I have installed  a C++ program from this book called C++ in =
24hr.=20
  which reconize borland compliers, etc.,etc.=20
  However when I started the "Hello World" program I kept getting this =
error message in line 5.=20
  This is how I designed the program:=20
  1.  #include <iostream.h>=20
  2.=20
  3.   int main()=20
  4. {=20
  5.   cout << 'Hello World! /n';=20
  6.   return o;=20
  7.  }=20
  now I tried to complied this program and I get this error message: =
"../tmp/hello.cpp(5)error:parse error before';'"=20
  this message prevents me from running the program and I have no idea =
what's wrong, please help and guide me in the right direction.=20
     Your assistance in this matter will be deeply appreciated.=20
  Thank you for your time and cooperation in this matter.=20
  Jonathan750 AT aol DOT com=20


------=_NextPart_000_003D_01C0A3E0.53C07EE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Use Quotes&nbsp; (") instead of (') for =
your "Hello=20
World".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Use zero instead of 'o' for your return =

statement.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Steve</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dreabee71 AT optonline DOT net =
href=3D"mailto:reabee71 AT optonline DOT net">R B</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Newsgroups:</B> =
comp.os.msdos.djgpp</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Ddjgpp AT delorie DOT com=20
  href=3D"mailto:djgpp AT delorie DOT com">djgpp AT delorie DOT com</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, March 02, 2001 =
8:04=20
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Having a problem =
w/sorce=20
  codes</DIV>
  <DIV><BR></DIV><FONT face=3D"BrushScript BT"><FONT size=3D+1>Dear=20
  Sir,</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT=20
  size=3D+1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have =
installed&nbsp; a=20
  C++ program from this book called C++ in 24hr.</FONT></FONT> <BR><FONT =

  face=3D"BrushScript BT"><FONT size=3D+1>which reconize borland =
compliers,=20
  etc.,etc.</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT =
size=3D+1>However=20
  when I started the "Hello World" program I kept getting this error =
message in=20
  line 5.</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT =
size=3D+1>This is=20
  how I designed the program:</FONT></FONT> <BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>1.&nbsp; #include=20
  &lt;iostream.h&gt;</FONT></FONT> <BR><FONT face=3D"BrushScript =
BT"><FONT=20
  size=3D+1>2.</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT=20
  size=3D+1>3.&nbsp;&nbsp; int main()</FONT></FONT> <BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>4. {</FONT></FONT> <BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>5.&nbsp;&nbsp; cout &lt;&lt; =
'Hello World!=20
  /n';</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT=20
  size=3D+1>6.&nbsp;&nbsp; return o;</FONT></FONT> <BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>7.&nbsp; }</FONT></FONT> =
<BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>now I tried to complied this =
program and I=20
  get this error message: "../tmp/hello.cpp(5)error:parse error=20
  before';'"</FONT></FONT> <BR><FONT face=3D"BrushScript BT"><FONT =
size=3D+1>this=20
  message prevents me from running the program and I have no idea what's =
wrong,=20
  please help and guide me in the right direction.</FONT></FONT> =
<BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>&nbsp;&nbsp; Your assistance =
in this=20
  matter will be deeply appreciated.</FONT></FONT> <BR><FONT=20
  face=3D"BrushScript BT"><FONT size=3D+1>Thank you for your time and =
cooperation in=20
  this matter.</FONT></FONT><FONT face=3D"BrushScript BT"><FONT=20
  size=3D+1></FONT></FONT>=20
  <P><FONT face=3D"BrushScript BT"><FONT =
size=3D+1>Jonathan750 AT aol DOT com</FONT></FONT>=20
  </P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003D_01C0A3E0.53C07EE0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019