best book. evar.

This is a discussion on best book. evar. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; In the attic today, I found a wonderful and informative book on C++. "C++ Simplified" by Adam Shaw. Below is ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    best book. evar.

    In the attic today, I found a wonderful and informative book on C++. "C++ Simplified" by Adam Shaw.

    Below is some example source code from the book (exactly how it is formatted):
    Code:
    #include <iostream.h>
    //To illustrate how goto statement operates with if...else statement
    void main ( void )
    {
    int account;
    again:
    cout << " Enter account number: ";
    cin >> account;
    if ( account >= 1000 ) {
    cout << " Wrong number.  Try again!" << endl;
    goto again;
    }
    else
    cout << " The number you have entered is: " << account << endl;
    goto again;
    }
    looks like something straight out of one of Unregistered's posts.

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Oh dear.

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Um... wow.

    It'd be like if the people that fight Salem got together and wrote a book.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Here's a snippet from one of my graphics books

    Code:
    void Octant0(X0,Y0,DeltaX,DeltaY,XDirection)
    unsigned int X0,Y0;
    unsigned int DeltaX,DeltaY;
    int XDirection
    {
    //Body of code
    }
    I think it's for TurboC or someother relic.....The author is great and the book is interesting...but severly dated!

  5. #5
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953

    Re: best book. evar.

    Originally posted by Brian
    "C++ Simplified" by Adam Shaw
    Which edition, I have to have that!
    none...

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Note to self:

    Never buy a programming book written by Adam Shaw.

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>goto bookshop to demand refund
    That's the first valid use of a goto I've seen in a long time.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. URGENT: Help wanted...in C
    By iamjimjohn in forum C Programming
    Replies: 16
    Last Post: 05-18-2007, 06:46 AM
  2. Books on C and C++
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-28-2002, 04:18 PM
  3. Newbie - MFC code from a book in VC++.Net
    By Guardian in forum Windows Programming
    Replies: 2
    Last Post: 04-27-2002, 08:17 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM

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