Thread: Standards

  1. #1
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472

    Standards

    i saw lots of convos where programmers say that "this" fall under C98 standard and "that" fall under ANSI or whatever other standard is there...

    my question is .. how do you guys learn what things go under wich standard (and) what things work with what standard??? do you read books about C\C++ standards or something???


    any help would be appreciated..
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Yeah, pretty much. If you don't have a copy of the standard itself (whatever year), then look for some books on the subject. One point of reference is "C: A Reference Manual, 5th Edition". It covers a touch of C++, but mainly goes over the various standards. Basicly just jump over to your favourite book seller and search for "C" "standard". Then read the reviews, look in the book if you can. I have a number of them, but the 5th Ed is what's handy.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you can get the last public draft of C99 for free from here
    http://www.open-std.org/jtc1/sc22/wg14/www/docs/n869/

    If you want a proper standard, then visit
    http://webstore.ansi.org/ansidocstor...FIEC+9899-1999

    This contains some information on what happened between C89 and C99
    http://www.lysator.liu.se/c/tc1.html
    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
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    thanks alot guys
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    It's a good idea to get a copy of the standard for whatever language you plan on talking about here, if only so that you can use it as ammunition.
    My best code is written with the delete key.

  6. #6
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    its not neccessary , is it?? (learning about the old standards)

    i think of it as gaining more knowledge of the past , like history maybe...

    what do you think??
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Brain Cell
    its not neccessary , is it?? (learning about the old standards)

    i think of it as gaining more knowledge of the past , like history maybe...

    what do you think??
    That depends entirely on what compiler you're using. I mean, if you're still stuck in the stone age ...

    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    ---
    Join Date
    May 2004
    Posts
    1,379
    lol
    do you think aaronc gets the point yet?

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >its not neccessary , is it?? (learning about the old standards)
    It couldn't hurt to learn where the differences and traps are. You may find yourself maintaining legacy code and knowledge of past standards (or lack thereof) can be mighty useful.
    My best code is written with the delete key.

  10. #10
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    but their server is so slow that
    Don't look a gift horse in the mouth.

    it was downloading with 250 bytes/sec..
    Patience, Grasshopper.

    does that happens only to me?
    Yes, everybody hates you. This is part of their way of showing it.

    Quzah.
    Hope is the first step on the road to disappointment.

  11. #11
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I'm don't think winzip can open .gz files.

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    IIRC, the pdf.gz isn't actually zipped at all, it's just a badly named pdf file.
    Unless they've since fixed it.
    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.

  13. #13
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    Quote Originally Posted by Thantos
    I'm don't think winzip can open .gz files.
    It can, at least the later version I am sure of, the older ones, don't count on it.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  14. #14
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    It definately isn't a gzipped file. I tried last night with both of these commands
    Code:
     tar -xzvf n869.pdf.gz 
    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Archive contains obsolescent base-64 headers
    tar: Error exit delayed from previous errors
    and without the -z option; same errors. I renamed it to n869.pdf and did this
    Code:
    xpdf n869.pdf
    and got these errors
    Code:
    Error: May not be a PDF file (continuing anyway)
    Error (0): PDF file is damaged - attempting to reconstruct xref table...
    Error: Couldn't find trailer dictionary
    Error: Couldn't read xref table
    . So I assume something is wrong with the file. I have an idea; just go and get the txt file

  15. #15
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    linuxdude, you wouldn't use tar because it is not tar, only gzipped. To un-gunzip it you have to use the gunzip command:
    gunzip n869.pdf.gz
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question - linux - gcc - c standards
    By AMAMH in forum C Programming
    Replies: 12
    Last Post: 12-03-2009, 02:49 AM
  2. Graphical standards
    By Shakti in forum Tech Board
    Replies: 1
    Last Post: 08-27-2004, 11:32 AM
  3. new C++ standards
    By Nectron in forum C++ Programming
    Replies: 6
    Last Post: 06-12-2003, 02:38 PM
  4. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 09:15 AM
  5. Keeping up with newest standards
    By Shadow12345 in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2002, 08:06 AM