Solved

not reconizing the include files

Posted on 2000-04-29
3
154 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:vable
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 2762763
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
 
LVL 15

Accepted Solution

by:
NickRepin earned 200 total points
ID: 2762806
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
 

Author Comment

by:vable
ID: 2764026
I completely forgot about the using namespace std; stupid me. Anyway, thanks for reminding me.

Vable
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question