Learning to use c + +