how to take input of character in class in c++ code example Example: working with char and string c++ String and Char