For your Friday reading pleasure, here's a classic paper showing off C++'s flexibility with a wink and a smile.
Although it doesn't exercise the new features of modern C++, we believe all of the code still works. How's that for backward compatibility...
by Bjarne Stroustrup
From the article:
This paper presents a series of examples of how to represent stacks in a program. In doing so it demonstrates some of the fundamental techniques and tradeoffs of data hiding as seen in languages such as C, Modula2, and Ada. Since all the examples are written in C++ it also demonstrates the flexibility of C++’s mechanisms for expressing data hiding and access.
... The nine-plus cat lives in this paper are dedicated to Dave McQueen who once in desperation proposed the death penalty for presenting "yet another stack example." Also thanks to Andy for giving me a practical demonstration of the difficulty of stacking cats.