03.06.2014, 23:20
Alright, I'm having an issue with string character replacement:
Picture 26 of these lines total, and they're in a for loop. Each line represents a letter of the alphabet, and a letter to replace it with.
Issue: When I enter a string such as "STRING", only the last letter is changed, instead of all of the characters.
Код:
if(!strcmp(input[i],"A") && input[i] != '\0'){input[i] = 'C'; continue;}
Issue: When I enter a string such as "STRING", only the last letter is changed, instead of all of the characters.