How can I convert a string to char?
I already Googled and I didn't find the answer to the situation I'm in. Really, I'm trying to convert an int to a char but my compiler doesn't support the to_string function so I decided to convert to from int to string then string to char.
I'm using a char[ ][ ] so I can store integers and chars.
stringstream ss;
ss << j; // j is the integer
string s(ss.str());
ascii_text[1][i] = (char)s;
EDIT:
I'm working with ASCII chars.
This is what I'm trying to do. int a = 10; -> string s = "10"; -> char c = '10';
I'll be happy if I found a way to convert int to char directly.