add chapter01 cpp code and improve readability
Merge pull request #52 from Boshen/master

add chapter 1 cpp code and improve readability