delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/14/13:08:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [206.191.16.98]
From: "Jessica Wang" <miss_jessicaw AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: newbie seeking help
Date: Wed, 14 Mar 2001 17:42:34
Mime-Version: 1.0
Message-ID: <LAW2-F42vLVKi3s1wsX0000c370@hotmail.com>
X-OriginalArrivalTime: 14 Mar 2001 17:42:34.0879 (UTC) FILETIME=[273A40F0:01C0ACAE]

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

- Raw text -


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