locked
PROBLEM RRS feed

  • Question

  • I HAVE A PROBLEM IN COMPILING IN MICROSOFT VISUAL C++ 2010 EXPRESS.

    WHEN I AM COMPILING, THEN 

    it is coming as

    FATAL ERROR C1083: CANNOT OPEN INCLUDE FILE: 'IOSTREAM.H' : NO SUCH FILE OR DIRECTORY.

    SO WHAT CAN I DO NOW. PLEASE REPLY ME SOONER.

    Monday, September 10, 2012 3:09 PM

Answers

  • Use iostream (without the .h) instead, iostream.h is non standard and it no longer exists in new versions of VC++.

    #include <iostream>
    using namespace std;
    int main() {
       cout << "Hello" << endl;
    }
    

    Monday, September 10, 2012 3:12 PM

All replies

  • Use iostream (without the .h) instead, iostream.h is non standard and it no longer exists in new versions of VC++.

    #include <iostream>
    using namespace std;
    int main() {
       cout << "Hello" << endl;
    }
    

    Monday, September 10, 2012 3:12 PM
  • Remove the ".h"

    Monday, September 10, 2012 3:14 PM
  • Do not use Iostream.h as that clearly is not correct if you want to make sure you are right when you type

    #include<

    it comes with list of header files underneath so when checking you better off using that.


    computers make an world and program makes an empire in the vast world of computers and coder makes an emperor if master one language you can conquer the world of computers.

    Monday, September 10, 2012 3:16 PM