Thread: iostream not ionstream... :P

  1. #1
    Registered User
    Join Date
    Jun 2008

    iostream not ionstream... :P

    Can you have iostream and <cstdlib> in one source file?

  2. #2
    Registered User
    Join Date
    Jun 2008


    I don't see why not. You don't have to say cstdlib you can just say stdlib

  3. #3
    Super Moderater.
    Join Date
    Jan 2005
    Yes, you can, but I disagree with post #2, second part.

  4. #4
    Join Date
    Oct 2007
    Inside my computer
    cstdlib is C++'s version of stdlib.h. Therefore, use cstdlib in C++.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drieving from iostream
    By Thantos in forum C++ Programming
    Replies: 8
    Last Post: 06-23-2004, 04:57 PM
  2. iostream & hex?
    By dmlx90 in forum C++ Programming
    Replies: 0
    Last Post: 05-22-2002, 11:51 PM
  3. DJGPP Doesn't include IOSTREAM!!!!!!!!!!!
    By Frenchfry164 in forum Game Programming
    Replies: 12
    Last Post: 10-27-2001, 12:27 PM
  4. << in iostream
    By badman in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2001, 10:19 PM
  5. Is there a C iostream?
    By Khisanth in forum C Programming
    Replies: 1
    Last Post: 09-05-2001, 12:34 AM