Mail Archives: djgpp/2010/07/13/17:25:25
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 -