Hi, I am working on a program that deals with strings. Basically, I want to check the integer value of each string and if the char's value is null, I want to make it one. Checking the value of the string is not hard, it is the part that deals with changing it's value. Here is my code:
I have a feeling it is something I don't know/understand with strings but any help will be appreciated. ThanksCode:for (int i=0; i < 6; i++) { if ((int)string[i] == 0) { (int)string[i] = 1; } }