Results 1 to 3 of 3

Thread: For all you C++ Guru's !!!

  1. #1
    aj_000
    Guest

    Question For all you C++ Guru's !!!

    I was using Turbo C++ to make a simple c++ application, and when i try to run the thing, the error message i get is could not open include iostream.h file, and all the files are there, is this just a software problem or what ???

    Can some one hook me up with a good C++ Program ?

  2. #2

    Smile

    I assume you have a line like this:
    #include <iostream.h>
    Problem is that you don't have "iostream.h" or its in a different location then what you specified.

  3. #3
    Regular Member
    Join Date
    Aug 1999
    Posts
    341

    Post

    In addition to what Zero_Satisfaction said, you don't need the .h. Part of the C++ specification gets rid of the .h in include files, and renames (or rather allows you to include) C header files using a "c" in front and getting rid of the .h (i.e. cstdio is the same as stdio.h)--this cuts down on the need for extern "C" { ... } includes.

    Keep in mind this is for the include files that come with the compiler only.

    So:

    #include <iostream>

    That's good enough.

    [ 04-22-2001: Message edited by: Stu ]

Bookmarks

Posting Permissions

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