not reconizing the include files

yo yo, I'm using the Microsoft Visual C++ 6.0. The compiler isn't recognizing any include files, one of the errors that i get when i compile is that cout an undeclared identifier. this is what the include files look like in the source code:
#include <iostream>
#include <fstream>
#include <string>

I tried changing them into .h files ( #include "iostream.h" ) but that didn't help. I need help with this asap, so any input on this problem will be greatly appreciated.

Vable
vableAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
NickRepinConnect With a Mentor Commented:
It must be as

----------
#include <iostream>
#include <fstream>
#include <string>

using namespace std;

// other stuff
----------------

or as

----------------
#include <iostream.h>
#include <fstream.h>
#include <string.h>
---------------
0
 
jkrCommented:
Are the environment variables set correctly? E.g. make sure that there 's one named 'INCLUDE' which points to the directory whare your include files reside in...
0
 
vableAuthor Commented:
I completely forgot about the using namespace std; stupid me. Anyway, thanks for reminding me.

Vable
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.