Cannot find headerfile: "iostream.h"

I am working with Visual C++. I have bought a couple of books and now I am beggining to learn.
in the examples of codes they include the <iostream>. However my program is asking for the "stdafx.h" file. I am trying to replace that file with the iostream file but I have searched my computer for the iostream file but cannot find it. Where can I get it?
Last edited on
I haven't messed with VC++ so I can't say where the header file actually is. However, the compiler is not required to actually have a physical file corresponding to it... if you can believe that.

The stdafx.h is a bit of a trick to make compilation go faster. The Wikipedia explains how to get rid of it.
http://en.wikipedia.org/wiki/Precompiled_header#Common_Implementations

To use the iostream just
#include <iostream>
at the head of your file and it will be there.

Hope this helps.
it works fine if you add the #include <iostream> after the #include "stdafx.h".
Topic archived. No new replies allowed.