how can I make one of the underscore on line elleven change to some letter/
I tried to put p.replace(p.begin(),p.begin()+pos+1,letter);
in the for loop but it changes everything into that certain letter exept first underscore.
I know possition of a letter i want to change, because i have done possition = word.find(letter)+1;
but i can t get to change just one letter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
void x (string word, string letter, int pos, int length)
for (int i = 0; i<length; i++)