delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/11/11:41:40

X-Originating-IP: [206.216.151.26]
X-Originating-Email: [davidkobilnyk AT msn DOT com]
From: "David Kobilnyk" <DavidKobilnyk AT msn DOT com>
To: <djgpp AT delorie DOT com>
Subject: cout command
Date: Mon, 11 Aug 2003 09:40:02 -0500
MIME-Version: 1.0
X-Mailer: MSN Explorer 7.02.0011.2700
Message-ID: <BAY5-DAV1294tJD4Kfu00017d2a@hotmail.com>
X-OriginalArrivalTime: 11 Aug 2003 14:39:24.0695 (UTC) FILETIME=[5C154270:01C36016]
Reply-To: djgpp AT delorie DOT com

------=_NextPart_001_0001_01C35FEC.89CE38E0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm having trouble getting "cout" to work. The compiler tells me there ar=
e no errors with my code; but when I try to turn the object file into an =
executable file using DOS, I get a bunch of error messages. Here's the co=
de:

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;

int main(void)
{
  int i;
  i =3D 2;
  cout << i  << '\n';
  system("pause");
  return 0;
}


I'm a beginner in C++, but I get the feeling that "cout" is an important =
word in C++. Does anyone know what the problem is?


Thanks,
David KobilnykGet more from the Web.  FREE MSN Explorer download : http:/=
/explorer.msn.com

------=_NextPart_001_0001_01C35FEC.89CE38E0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>Hi,</DIV> <DIV=
>&nbsp;</DIV> <DIV>I'm having trouble getting "cout" to work. The compile=
r tells me there are no errors with my code; but when I try to turn the o=
bject file into an executable file using DOS, I get a bunch of error mess=
ages. Here's the code:</DIV> <DIV>&nbsp;</DIV> <DIV>#include &lt;stdio.h&=
gt;<BR>#include &lt;stdlib.h&gt;<BR>#include &lt;iostream&gt;<BR>using na=
mespace std;</DIV> <DIV><BR>int main(void)<BR>{<BR>&nbsp; int i;<BR>&nbsp=
; i =3D 2;</DIV> <DIV>&nbsp; cout &lt;&lt; i&nbsp; &lt;&lt; '\n';</DIV> <=
DIV>&nbsp; system("pause");<BR>&nbsp; return 0;<BR>}</DIV> <DIV>&nbsp;</D=
IV> <DIV>&nbsp;</DIV> <DIV>I'm a beginner in C++, but I get the feeling t=
hat "cout" is an important word in C++. Does anyone know what the problem=
 is?</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>Thanks,</DIV> <DIV>Da=
vid Kobilnyk<BR><BR><BR></DIV></BODY></HTML><br clear=3Dall><hr>Get more =
from the Web.  FREE MSN Explorer download : <a href=3D'http://explorer.ms=
n.com'>http://explorer.msn.com</a><br></p>

------=_NextPart_001_0001_01C35FEC.89CE38E0--

- Raw text -


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