what i would like to do is take the string cpyString and if the element matches with the user input userGuess then replace the single letter with the guess.
1 2 3 4 5
for (int a = 0 ; a <= wordLength ; a++)
{
if (cpyString[a] = userGuess[0])
newString[a] = userGuess[0];
}
it will change the entire string into my input i have no idea why
or it wont change anything so i have newString equal to a bunch of ******* i want to change these to the letter that matches cpyString. For example if cpyString = word then newString = **** if userGuess = w i want it to display w*** as the guesses go on it should be w*r* untill newString = word