Thread: Where is iostream.h after deleting Visual Studio?

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Where is iostream.h after deleting Visual Studio?

    I used to use Microsoft Visual Studio but recently I deleted it and removed all the files under its directory.

    Now i'm using CodeBlocks and I need to use iostream.h but i can't find it. Maybe it was stored under VS's directory and I've deleted it. Maybe many other standard header files were deleted too.

    How can I get these files again?

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Code::Blocks is just the IDE. You now need the compiler, which must be matched for your system. I don't use Code::Blocks, but MinGw is one that's commonly used. Read up on it, before you install the wrong one, however!

    If you search this forum, you'll find some suggestions, I'm sure. Look for Code Blocks or Code::Blocks, in the C forum. Search is 12 o'clock on C forum's page.

    If you are looking for C++ header files, you're in the wrong forum, BTW. C uses io.h, and C++ now uses iostream (with no dot h, I believe).
    Last edited by Adak; 03-12-2011 at 12:53 AM.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    C does NOT use io.h (stop quoting your crappy old DOS compiler!)

    C I/O comes from stdio.h

    @ZuckMitnick
    Make sure you download the code::blocks package with "mingw" in the title (it's a larger file).
    It's larger, because it includes the IDE and the compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Irrelevant. Anything not part of the standard should be avoided, and not promoted in any way or form.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    So? no longer? K&R has io.h ?

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Wow, I'm tempted to make a quote of that. The only thing that could have been better would be for "that" to be changed to "your" XD
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    My post?
    Heh, go ahead and make your quote Elysia, and I'll edit my post to make it work
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Haha. Perfect!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by ZuckMitnick View Post
    I used to use Microsoft Visual Studio but recently I deleted it and removed all the files under its directory.

    Now i'm using CodeBlocks and I need to use iostream.h but i can't find it. Maybe it was stored under VS's directory and I've deleted it. Maybe many other standard header files were deleted too.

    How can I get these files again?
    Go back to Code::Blocks and download codeblocks-10.05mingw-setup.exe
    ... That is Code::Blocks IDE with the GCC for windows compiler already installed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LDAP Query
    By Travoiz in forum C++ Programming
    Replies: 0
    Last Post: 08-13-2009, 02:58 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM