The power of using RAII
===

Suppose I'm a teacher and I want to explain to my students what are the benefits of using [RAII](http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization) in C++: I need a very good example, full of details, but that is easy to understand.<br>

Which approach would you use?