Page 1 of 1

iostream

Posted: Sat Jul 10, 2010 5:19 am
by physwizz
I am new to c++ programming and I am getting the message that iostream-h doesn't exist when I try to include it using
#include <iostream-h>
If I use #include <iostream> then it tells me that cout is not declared.

I've been trying to follow some of the tutorials with much frustration.
:cry:

Re: iostream

Posted: Sat Jul 10, 2010 8:28 am
by eranif

Code: Select all

iostream.h
is deprecated and should not be used.

Only use <iostream> - if you still get errors, then you are probably not using it correctly (you should use std::cout, unless you explicitly added 'using namespace std')

Also, this forum is not a general programing forum - if your question is not related to codelite don't post it here.

Please ask any C++ related questions in the appropriate forums

e.g. http://www.daniweb.com/forums/

Eran

Re: iostream

Posted: Sun Jul 11, 2010 10:34 am
by physwizz
Thanks Eran. I finally decided to change from codelite in Linux to using codelite in Windows and I found that it now works fine.
Perhaps some of the files hadn't loaded properly into the Linux version!