O'Reilly logo

C++ 2013 for C# Developers,Second Edition by Dean C. Wills

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 13

image

Fun, Fun, and More Fun

How does a project get to be a year late? One day at a time.

—Frederick P. Brooks, Jr., The Mythical Man-Month

As we conclude the basic introduction to C++ and prepare to tackle more-advanced topics, perhaps it might be fitting to reward our efforts with a slight diversion. We’ll look at some fun interview questions with programmatic C++ solutions.

Dropping Light Bulbs

There’s an interview question floating around on the Internet1 that asks you to determine how far a superstrong light bulb can drop without breaking. We’ll break down this program mathematically and implement a nice recursive algorithm to show ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required