add chapter 1 cpp code and improve readability

搞定， 感觉可以的话请merge