Steve Oualline
How Not to Program in C++
111 Broken Programs and 3 Working Ones, or Why 2+2=5986?
IN DEN WARENKORB LEGEN
25,00 Euro(D) / 25,80 Euro(A)
März 2003
280 Seiten, Broschur
ISBN: 978-1-886411-95-1
No Starch Press
Leseproben und Links
Weitere dpunkt.produkte
Kritik, Anregungen?
C++ is a flexible and powerful programming language that provides many opportunities to screw up.
This book is filled with broken programs. The question is, are you sharp enough to spot the errors in them? These are real programs (mostly) that contain the type of errors you might find in your own code, including the simple errors of the novice as well as hard to spot (and hard to debug) errors found in multi-threaded programs. Errors range from the simple uninitialized variable to "one Character Wonders": programs that are correct and would work fine except for one misplaced character.
Here´s a typical program:
#include <iostream>
int main()
{
std::cout << "Hello World/n";
return (o)
}
Every programming book needs a "Hello World" and this one is no exception - only this one´s broken.
The program compiles all right and the compiler doesn´t even produce any warnings, but when you run it something unexpected happens. (Find out what happens in Chapter 3, "One Character Wonders.")
Hints help you along the way, answers are provided at the back of the book, and Steve´s judiciously sprinkled humor will keep you going.
Zielgruppe:
- C and C++ programmers at all levels
Steve Oualline has been a programmer for 35 years. He is the author of Practical C Programming (O´Reilly), C Elements of Style (M&T), Practical C++ Programming (O´Reilly), and Vim (Vi Improved) (New Riders). He lives with his wife and 2 dogs in southern California. On the weekends, he works as a real engineer on the Powland-Midland Railroad.







