I have a string CorrAns = “Text”, I want to replace a character at a particular position with a character from another string.
I used the following:
CorrAns.replace(1,1,OtherString.at(pos));
But its giving error, what is the best way to do this??
replacehas no overload takingsize, size, char. You wantor