Hi all, i need help with this code im trying to produce. I've been searching google for days without finding any answers so please youve got to help me understand. The idea is to encrypt a string inputted by the user
I wish to increment the letters at odd positions by 5 in a string (only the letters..the other characters must stay the same)
for example : 2345f57hBFE&&/f3 should result in 2345f57mBKE&&/f3
example : 'h' which occupies position 7 has been incremented by 5 to become m in the new string.
the thing is I have absolutely no idea where to start!
I've been working with the string class a bit on blueJ but i know only how to increment numbers with the ++ and still i can only do a number at a time. How can I do this with a whole string?
please I really need your help.