invalid conversion from 'char' to 'const char'

The code you posted compiles just fine. What is the version of the code that gets the error?

The error is saying that the value you are trying to store in the "const char *" is a char, not a "char *".