Thread: old style C headers

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    330

    old style C headers

    Are the old C header like stdio.h, stdlib.h removed from standard C++ in C++0x or are they still in?
    Asking this because I see that some programmers in my project still use them and not cstdio and Im wondering if I should whine about it

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Still there for backwards compatibility with 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.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    The "old C headers" are deprecated in standard C++. "Deprecated" means they are supported, but scheduled for removal from a future version of the C++ standard. If memory serves, they continue to be deprecated in C++0x.

    There are a lot of factors - mostly related to team dynamics and your place in the team relative to other members - that will determine if it is worth pushing for a change.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    330
    Quote Originally Posted by grumpy View Post
    The "old C headers" are deprecated in standard C++. "Deprecated" means they are supported, but scheduled for removal from a future version of the C++ standard. If memory serves, they continue to be deprecated in C++0x.

    There are a lot of factors - mostly related to team dynamics and your place in the team relative to other members - that will determine if it is worth pushing for a change.
    ok, so they are still in. Then no whine from me the code will compile for years to come

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. WS_EX_COMPOSITED style (double buffering) problems
    By JasonD in forum Windows Programming
    Replies: 2
    Last Post: 10-12-2004, 11:21 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM