If I have a string variable like this:
string f = "ABC";
I want to make it like this:
f="CDE"
This means that I want to take every char in this string and increase it to the next 2 values, if I have ‘a’ I want to change it to ‘c’ and so on.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Following will increment the character to + 2, Not sure what you want when then characters are ending character in the alphabets.
For string
ABCresult will beCDE, but for stringXYZresult will beZ[\