iostream

General questions regarding the usage of CodeLite
physwizz
CodeLite Curious
Posts: 2
Joined: Sat Jul 10, 2010 3:34 am
Genuine User: Yes
IDE Question: C++
Contact:

iostream

Post 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:
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: iostream

Post 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
Make sure you have read the HOW TO POST thread
physwizz
CodeLite Curious
Posts: 2
Joined: Sat Jul 10, 2010 3:34 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: iostream

Post 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!
Post Reply