cpplearning: exmaple code of char array and string