How Not to Program in C++

Book description

Find the bugs in these broken programs and become a better programmer. Based on real-world errors, the puzzles range from easy (one wrong character) to mind twisting (errors with multiple threads). Match your wits against the author's and polish your language skills as you try to fix broken programs. Clues help along the way, and answers are provided at the back of the book.

Table of contents

  1. TABLE OF CONTENTS
  2. Introduction
  3. PART I: PROGRAMS
    1. Chapter 1: In the Beginning (1/2)
    2. Chapter 1: In the Beginning (2/2)
    3. Chapter 2: Starting Out on the Wrong Foot (1/4)
    4. Chapter 2: Starting Out on the Wrong Foot (2/4)
    5. Chapter 2: Starting Out on the Wrong Foot (3/4)
    6. Chapter 2: Starting Out on the Wrong Foot (4/4)
    7. Chapter 3: One Character Wonders (1/3)
    8. Chapter 3: One Character Wonders (2/3)
    9. Chapter 3: One Character Wonders (3/3)
    10. Chapter 4: Everyday Problems (1/12)
    11. Chapter 4: Everyday Problems (2/12)
    12. Chapter 4: Everyday Problems (3/12)
    13. Chapter 4: Everyday Problems (4/12)
    14. Chapter 4: Everyday Problems (5/12)
    15. Chapter 4: Everyday Problems (6/12)
    16. Chapter 4: Everyday Problems (7/12)
    17. Chapter 4: Everyday Problems (8/12)
    18. Chapter 4: Everyday Problems (9/12)
    19. Chapter 4: Everyday Problems (10/12)
    20. Chapter 4: Everyday Problems (11/12)
    21. Chapter 4: Everyday Problems (12/12)
    22. Chapter 5: C Code, C Code Break (1/3)
    23. Chapter 5: C Code, C Code Break (2/3)
    24. Chapter 5: C Code, C Code Break (3/3)
    25. Chapter 6: Premature Breakage (1/2)
    26. Chapter 6: Premature Breakage (2/2)
    27. Chapter 7: Classes with No Class (1/9)
    28. Chapter 7: Classes with No Class (2/9)
    29. Chapter 7: Classes with No Class (3/9)
    30. Chapter 7: Classes with No Class (4/9)
    31. Chapter 7: Classes with No Class (5/9)
    32. Chapter 7: Classes with No Class (6/9)
    33. Chapter 7: Classes with No Class (7/9)
    34. Chapter 7: Classes with No Class (8/9)
    35. Chapter 7: Classes with No Class (9/9)
    36. Chapter 8: Expert Confusion
    37. Chapter 9: Portage to Hell (1/2)
    38. Chapter 9: Portage to Hell (2/2)
    39. Chapter 10: A Few Working Programs
    40. Chapter 11: Threaded, Embedded — Dreaded (1/4)
    41. Chapter 11: Threaded, Embedded — Dreaded (2/4)
    42. Chapter 11: Threaded, Embedded — Dreaded (3/4)
    43. Chapter 11: Threaded, Embedded — Dreaded (4/4)
  4. PART II: HINTS (1/6)
  5. PART II: HINTS (2/6)
  6. PART II: HINTS (3/6)
  7. PART II: HINTS (4/6)
  8. PART II: HINTS (5/6)
  9. PART II: HINTS (6/6)
  10. PART III: ANSWERS (1/11)
  11. PART III: ANSWERS (2/11)
  12. PART III: ANSWERS (3/11)
  13. PART III: ANSWERS (4/11)
  14. PART III: ANSWERS (5/11)
  15. PART III: ANSWERS (6/11)
  16. PART III: ANSWERS (7/11)
  17. PART III: ANSWERS (8/11)
  18. PART III: ANSWERS (9/11)
  19. PART III: ANSWERS (10/11)
  20. PART III: ANSWERS (11/11)

Product information

  • Title: How Not to Program in C++
  • Author(s): Steve Oualline
  • Release date: April 2003
  • Publisher(s): No Starch Press
  • ISBN: 9781886411951