cpplearning: add example code of string