C++ exercise
perl exercises of chapter 16,17