
INTRODUCTION
Pain is a wonderful learning tool. It’s nature’s way of saying, “Don’t do that!” If
you are a programmer, you’ve had your share of pain. It usually occurs about
2:00 in the morning as you finally find that one last bug that has been tor-
menting you for the past two weeks.
The book is filled with buggy programs. This allows you to learn from the
misfortunes of others. It contains bugs that I’ve found, bugs found by my
friends and other programmers. Each program is a learning experience.
The programs presented here are designed to be as close to real world pro-
grams as possible. Each of the programs tries to accomplish a simple task ...