Solved

not reconizing the include files

Posted on 2000-04-29
3
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 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