Solved

not reconizing the include files

Posted on 2000-04-29
3
150 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
Comment Utility
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
Comment Utility
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
Comment Utility
I completely forgot about the using namespace std; stupid me. Anyway, thanks for reminding me.

Vable
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa‚Ķ
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now