delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/08/25/15:27:57

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error: no match for 'std::istream& > int&' operator
Date: 25 Aug 2002 16:02:02 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 19
Message-ID: <akav1q$ag0$1@nets3.rz.RWTH-Aachen.DE>
References: <ak6467$k87$1 AT bob DOT news DOT rcn DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1030291322 10752 137.226.32.75 (25 Aug 2002 16:02:02 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 25 Aug 2002 16:02:02 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Art Nouveau <pragsys AT rcn DOT com> wrote:
> I am just starting to learn C++ but can't seem to compile and run my first
> program. I get the subject error at "cin > nCelsius " at line 9.  

No susprise at all -- that's just a pretty obvious typo. Make that

	cin >> nCelsius;

and you should be in business.

> include <stdio.h>
> #include <iostream>

You should usually try to avoid using both the traditional C <stdio.h>
and C++'s replacement of it, <iostream>, in the same source.  It'll cause
nothing but confusion.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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