Mail Archives: djgpp/2003/08/11/11:41:40
------=_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=
> </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> </DIV> <DIV>#include <stdio.h&=
gt;<BR>#include <stdlib.h><BR>#include <iostream><BR>using na=
mespace std;</DIV> <DIV><BR>int main(void)<BR>{<BR> int i;<BR> =
; i =3D 2;</DIV> <DIV> cout << i << '\n';</DIV> <=
DIV> system("pause");<BR> return 0;<BR>}</DIV> <DIV> </D=
IV> <DIV> </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> </DIV> <DIV> </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 -