Article View: att.lang.c++
Article #284Re: can someone please help with compile error?
From: Barry The Big
Date: Mon, 27 Oct 1997 00:00
Date: Mon, 27 Oct 1997 00:00
38 lines
1365 bytes
1365 bytes
Vangeli wrote:
>
> #include <iostream.h>
> int main()
> {
> int x=5;
> int y=7;
> cout "\n";
> cout <<x+y<<""<<x*y;
> cout "\n";
> return 0;
> }
> Can someone please help me. Am I doing something wrong or is there a typo in the documentation?
> The compiler I'm using is Microsoft Visual C++ 4.1. Any assistance will be greatly appreciated.
--
Yup sure. Try replacing the lines:
cout "\n";
With:
cout << "\n";
If this doesn't work, try cout << '\n';
Hope this helps,
Baz.
~~~~~~~~~~~~~~
email: b3060415@student.anu.edu.au
visit:
http://members.tripod.com/~Barry_The_Big/index.html
Technical Details
Message-ID:
<3454365A.63AF@student.anu.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<345411F6.8099B23@crystalvision.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109b8e,639f772a9c997d09 X-Google-Attributes: gid109b8e,public X-Google-Thread: 10d4ba,639f772a9c997d09 X-Google-Attributes: gid10d4ba,public X-Google-Thread: 114592,639f772a9c997d09 X-Google-Attributes: gid114592,public From: Barry The Big <b3060415@student.anu.edu.au> Subject: Re: can someone please help with compile error? Date: 1997/10/27 Message-ID: <3454365A.63AF@student.anu.edu.au> X-Deja-AN: 285226971 References: <345411F6.8099B23@crystalvision.net> Organization: Australian National University Newsgroups: att.lang.c++,alt.comp.lang.learn.c-c++,microsoft.public.usasalesinfo.developer.visualc++