CPPStudy: add exercise of chapter 2