take character array input in cpp as string code example Example: working with char and string c++ String and Char