Original Post
Hi all,
I am having great difficulty with MS Visual C++ 6.0 and trying to incorporate some C++ code into my existing C code. I am learning C++ but know C very well.
When using C++ strings, one must include string.h, for cin and cout, one must include iostream.h,... and so forth. My compiler, however, does not know what strings, vectors, cin, cout, etc., are and gives me errors. I found that, for some mysterious reason, including istream.h and ostream.h besides iostream.h makes the compiler recognize cin and cout, but it's supposed to recognize it from just including iostream.h. I tried using namespace std, but MSVC doesn't even understand what that means, claiming there is no such namespace as std in an error message.
Help is greatly appreciated!
Thanks and be well,
Brian
[edited by - BrianMJC on May 11, 2003 5:04:22 PM]