Thread: best book. evar.

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

    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

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    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,793
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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, 05: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, 07: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