I have used STL in C++ to read an input line as a string. Now, I need to make a comparison of this input and a character..say a. These are of incompatible types so this is not possible. How can I convert the string to a charcter to make a comparison or vice versa.
Also, I cannot read the fitst line as character due to other strings that follow. So reading the input as a character is not an option.