View Full Version : best book. evar.

07-24-2003, 04:39 AM
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):

#include <iostream.h>
//To illustrate how goto statement operates with if...else statement
void main ( void )
int account;
cout << " Enter account number: ";
cin >> account;
if ( account >= 1000 ) {
cout << " Wrong number. Try again!" << endl;
goto again;
cout << " The number you have entered is: " << account << endl;
goto again;

looks like something straight out of one of Unregistered's posts.

07-24-2003, 06:21 AM
Oh dear.

07-24-2003, 06:39 AM
Um... wow.

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

07-24-2003, 07:06 AM
Here's a snippet from one of my graphics books

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!

07-24-2003, 07:10 AM
Originally posted by Brian
"C++ Simplified" by Adam Shaw

Which edition, I have to have that!:D

07-24-2003, 08:08 AM
Note to self:

Never buy a programming book written by Adam Shaw.

07-24-2003, 04:50 PM
>>goto bookshop to demand refund
That's the first valid use of a goto I've seen in a long time.