String Character Changing
#1

Alright, I'm having an issue with string character replacement:

Код:
if(!strcmp(input[i],"A") && input[i] != '\0'){input[i] = 'C'; continue;}
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.
Reply


Messages In This Thread
String Character Changing - by Aerotactics - 03.06.2014, 23:20
Re: String Character Changing - by Vince - 03.06.2014, 23:27
Re: String Character Changing - by Aerotactics - 03.06.2014, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)