From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: iostream.h Date: Tue, 27 Jan 1998 11:46:19 +0100 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 42 Message-ID: <34CDBAFB.B46D4C54@LSTM.Ruhr-UNI-Bochum.De> References: <199801270953 DOT EAA08097 AT delorie DOT com> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk ruleboy AT weblock DOT tm DOT net DOT my wrote: > #include > main () > { > int x, y, sum; > cout<<"\nEnter first number: "; > cin>>x; > cout<<"\nEnter second number:"; > cin>>y; > sum = x + y > cout<<"\nSum = "< 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. Why do you include io.h when in fact you want to include iostream.h? And why do you answer your problems in the subject line? So, just include iostream.h and live happily ever after. -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************