I'm trying to solve this problem and i get such an error [ Invalid conversion from 'char' to 'const char' ] ,but i can't figure out how to solve it. Here are the lines in which the problem is :
Declarations:
string alp("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
string formatted;
char partoftext[20];
size_t found;
found = text.copy(partoftext,2,0);
partoftext[found] = '\0';
a = atoi(partoftext);
formatted.append(alp[a]);
...
and the problem is in this line of code :
formatted.append(alp[a]);
thanks.