14. Object-Oriented Monty Hall

Do you like solving paradoxes and riddles? This chapter provides more experience in applying object orientation while attacking one of the more interesting riddles of our time.

In studying the sample program in this chapter, you’ll learn the solution to one of the most perplexing and famous paradoxes of modern times—no kidding! Follow along to learn how to solve the paradox and see practical examples of C++ class-object syntax at work.

This chapter explores one of the most interesting uses for computers. When you have a question that can’t be solved by people arguing, you can sometimes use a computer program, assuming it is written correctly, to run a simulation and see what happens. Isn’t that better than just ...

Get C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.