delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/07/13/17:25:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <4C3CD01F.9050204@vanderbilt.edu>
Date: Tue, 13 Jul 2010 15:44:15 -0500
From: Steve Csorna <steven DOT e DOT csorna AT vanderbilt DOT edu>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: iostream.h trouble
References: <4C3CB531 DOT 6070304 AT vanderbilt DOT edu> <4C3CBED1 DOT 90805 AT gmail DOT com>
In-Reply-To: <4C3CBED1.90805@gmail.com>
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166
definitions=2010-07-13_02:2010-02-06,2010-07-13,2010-07-13 signatures=0
X-PPS: No, score=0
Reply-To: djgpp AT delorie DOT com

Matt,
If I just use #include <iostream> (without .h) then it doesn't complain 
about not finding iostream,
but complains about "cout (and cin) not declared in this scope"...
Regards

Matthew Petricone wrote:
> Have you tried "#include <iostream>". The headers were changed at some 
> point, I am not sure if djgpp has mirrored this.
> On 7/13/2010 2:49 PM, Steven Csorna wrote:
>   
>> In rhide
>>
>> I am getting ERROR 22 iostream.h: no such fileor directory. Sure 
>> enough, though I followed download instructions
>> from Zip Picker, I cant find  iostream.h in any of the subfile 
>> directories. Where is iostream.h ?
>>
>> I get same problem with iostream if I use gcc,gxx or gpp from DOS 
>> window...
>> I saw others struggling with this kind of problem, but solution seems 
>> to be not posted
>> (unless you regard reference to incomprehensible readme.1st a solution!).
>> Regards and Thanks
>> Steve Csorna
>>
>> Here my program, conversion.cpp:
>>
>> //
>> //conversion C->F
>> #include <stdio.h>
>> #include <iostream.h>
>> int main(int nNumberofArgs, char* pszArgs[])
>> {
>>  int nCelsius;
>>  cout << "Enter Celsius:";
>>  cin >> nCelsius;
>>  int nFactor;
>>  nFactor=212-32;
>>  int nFahrenheit;
>>  nFahrenheit=nFactor*nCelsius/100 + 32;
>>  cout << "Fahrenheit is:";
>>  cout << nFahrenheit;
>>
>>  return 0;
>> }
>>
>>
>>     
>
>   

- Raw text -


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