Solved

not reconizing the include files

Posted on 2000-04-29
3
153 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

Suggested Solutions

Title # Comments Views Activity
Problem to file 3 83
Microsoft C++ code failing in executable that worked 9 108
Animated .jpg? 13 97
VS2015 Redefinition errors 4 68
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

856 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