Results 1 to 2 of 2

Thread: can't find iostream.h...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    200

    can't find iostream.h...

    Hi. I have a very simple hello world code:

    Code:
    #include "iostream.h"
    
    void main()
    {
    	cout << "Hello world" << endl;
    }
    This is a simple C++ console application written in Visual Studio 2005.

    fatal error: can't find "iostream.h" file.

    I thought that when I first started a new project, Visual Studio 2005 had already pointed to the Visual studio folder, by default. Am I wrong? If not then (for bigger project) I would have to copy many header files to my own include folder. I should not be like that. I am correct?

    What is the solution? Thank you.

  2. #2
    Hyperactive Member Aash's Avatar
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    491

    Re: can't find iostream.h...

    Quote Originally Posted by dtvonly View Post
    Hi. I have a very simple hello world code:

    Code:
    #include "iostream.h"
    
    void main()
    {
    	cout << "Hello world" << endl;
    }
    This is a simple C++ console application written in Visual Studio 2005.

    fatal error: can't find "iostream.h" file.

    I thought that when I first started a new project, Visual Studio 2005 had already pointed to the Visual studio folder, by default. Am I wrong? If not then (for bigger project) I would have to copy many header files to my own include folder. I should not be like that. I am correct?

    What is the solution? Thank you.
    Why haven't you coded as #include <iostream.h> ? are you trying to include a file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width