finish the C++ version of CC150 exercise 1.1
finish the CC150 exercise 1.2