Thread: I'm so not good at this and need help

  1. #31
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Heh...

    Out of perverse curiousity, I skiimmed through the whole of C for Dummies a few weeks ago. I found around 20-30 errors. A few based on typesetting messups, but a disturbing amount of fundamental errors about the C language. Examples that spring to mind:

    - repeated use of fflush(stdin)
    - repeated use of char instead of int for the return of getchar.
    - repeated use of gets(). Though he actually points out that it's dangerous and why, but says it's "okay to use while learning".
    - really strange explanation of scanf, pointing out that you need an & in front of the variables, but if it's a string, they're "optional". No explanation of why, because pointers are beyond the scope of the book.
    - assumption that C is tied to the ASCII character set throughout the book.
    - implication that if (foo = <constant>) will always be true, apparently doesn't realise that if <constant> is 0, it will be false.
    - awareness of, but misunderstanding of common newbie errors such as if (a == b) to compare strings. Then goes on to say that comparing strings is beyond the scope of the book, and to read his "more advanced" all in one desk reference.
    - misunderstanding of short-circuiting on logical operators && and ||
    - claims non-standard functions are part of the standard, such as sleep()

    To the book's credit, it generally tries to point out things that are not portable, and tries to produce conforming ANSI C. For example, I didn't see any void mains.

    Edit:

    Quote Originally Posted by Prelude
    >That thread got deleted.
    Color me shocked.
    Yeah, he actually canned my account

  2. #32
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Ah, that is why the two incarnations of cwr...

    cwr -> cwr2


  3. #33
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Yeah I've basically stopped commenting on his book, because I figured he'll just can my account again, and creating new accounts is tedious.

  4. #34
    Registered User
    Join Date
    Oct 2005
    Posts
    12
    So C help guide buying is as confusing as me programming it?

    I am getting with a tutor at school on Wednesday for help with functions. But i'm sure i'll probably still have questions.

    Thank you again for your help!!!

Popular pages Recent additions subscribe to a feed