Why not use non-standard C headers ?

This is a discussion on Why not use non-standard C headers ? within the C Programming forums, part of the General Programming Boards category; I wanna discuss this issue here as i have encountered this question many a times. IF we have been provided ...

  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    Great India
    Posts
    24

    Why not use non-standard C headers ?

    I wanna discuss this issue here as i have encountered this question many a times. IF we have been provided with some other header files which work nice for specific job like GRAPHICS.H for graphics in c.

    The same suggestion has been given by itsme86 at this post .

    Please let me know why not use them ?


    REALNAPSTER

  2. #2
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    You can use them as much as you like. People here usually mentions it to newbies so that they are aware that some headers are standard and can always be used and some are not and depends on your OS and compiler.
    This is to inform beginners that the functions, constants and other crazy things they use will not always work for everyone else or on other systems and this can give them problems later on.
    Say you're used to conio.h and use it a lot to get colored text and move around on the console screen, but, if you tried to compile it on a Linux box it probably wouldn't work and the newbie would have no idea why.

    You'll probably be coding a lot of non-portable code as you move to more advanced stuff. For example, Windows API is non-standard but also widely used.

  3. #3
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,159
    I wasn't saying not to use them. I was saying you need to give more information since one compiler's graphics.h isn't likely to be the same as another compiler's graphics.h. Just asking "how do I use dos.h or graphics.h to do graphics?" isn't sufficient because each compiler is different.

    Also, I mentioned google just because there really are so many sites that show you how to do this stuff in the environment you're insterested in.

    You'll need to give a lot more information about your environment and pray that someone here has had experience with it.
    If you understand what you're doing, you're not learning anything.

  4. #4
    Registered User
    Join Date
    Feb 2006
    Location
    Great India
    Posts
    24
    Ok I got my answer. Thanks for replying.

    A hardworking and good looking guy
    REALNAPSTER

  5. #5
    ---
    Join Date
    May 2004
    Posts
    1,379
    Quote Originally Posted by realnapster
    A hardworking and good looking guy
    REALNAPSTER
    you're a liar

  6. #6
    Registered User
    Join Date
    Feb 2006
    Location
    Great India
    Posts
    24
    Sand_man You have a cool sense of humour . You haven't saw me so how can you say that i am not HARDWORKING AND GOOD LOOKING.

    ?????????????????????????????????????????????????? ?????????????

    REALNAPSTER

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which of the C 'Standard Library headers' are worth rembering?
    By Ravens'sWrath in forum C Programming
    Replies: 24
    Last Post: 05-17-2007, 02:12 AM
  2. Question array loop
    By MILLWALLL in forum C++ Programming
    Replies: 24
    Last Post: 03-26-2007, 01:54 AM
  3. Standard for header file naming/capitalization?
    By skorman00 in forum C Programming
    Replies: 4
    Last Post: 04-21-2006, 02:38 AM
  4. iostream or iostream.h?
    By serruya in forum C++ Programming
    Replies: 15
    Last Post: 05-05-2003, 07:41 AM
  5. standard language, standard compiler?
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 09-03-2001, 04:21 AM

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