This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: newbie seeking help
- To: "Jessica Wang" <miss_jessicaw at hotmail dot com>, <cygwin at cygwin dot com>
- Subject: RE: newbie seeking help
- From: "Marcus A Martin" <shalidor at cfl dot rr dot com>
- Date: Wed, 14 Mar 2001 13:40:49 -0500
try:
cout << "Hello World" << endl;
> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Jessica Wang
> Sent: Wednesday, March 14, 2001 5:43 PM
> To: cygwin@cygwin.com
> Subject: newbie seeking help
>
>
> Hi,
>
> I'm very new at programming. I'm trying to compile a C++
> program using Cygwin g++ on Windows NT. The program is:
>
> #include <iostream.h>
> int main()
> {
> cout <( "Hello World" << endl;
> return 0;
> }
>
>
> I'm getting the following error:
>
>
> $ g++ hello.C -o hello
> hello.C: In function `int main()':
> hello.C:20: invalid operands `const char[12]' and `ostream &
> ()(ostream &)'
> to binary `operator <<'
> hello.C:20: parse error before `;'
>
>
> Please help... thanks.
>
> Jessica
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple