delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/04:53:39

Message-Id: <199801270953.EAA08097@delorie.com>
From: ruleboy AT weblock DOT tm DOT net DOT my
To: djgpp AT delorie DOT com
Date: Tue, 27 Jan 1998 17:51:19 +0000
MIME-Version: 1.0
Subject: iostream.h

I gotta problem here, i'm running rhide with djgpp and can't seem to 
get some stuff goin:

first you don't have some header files like iostream.h
sorry if there's some other file names becoz i'm used to Borland C++
so, i used io.h for a test prog like this:

   #include <io.h>
main ()
{
 int x, y, sum;
 cout<<"\nEnter first number: ";
cin>>x;
cout<<"\nEnter second number:";
cin>>y;
sum = x + y
cout<<"\nSum = "<<sum;
return 0;
}
and what i got? 
i got this : 1. cout, undeclared (first use this function)
                 2. each identifier is reported only once
                 3. for each function it appears in
                 4. cin undeclared (first use this function)
So, basically i have some problems with the header files, and 
actually i can't run anything if this thing stays like that. 
Hope you can help me, 
                                                 Hate,
                                                    trouble


- Raw text -


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