iostream not ionstream... :P

This is a discussion on iostream not ionstream... :P within the C++ Programming forums, part of the General Programming Boards category; Can you have iostream and <cstdlib> in one source file?...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    25

    iostream not ionstream... :P

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

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    266

    reply

    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
    Posts
    374
    Yes, you can, but I disagree with post #2, second part.

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,612
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21