Caeser Cipher

In short, i'm a total noob. However I need a way to count how many letters there are in a string. E.g the word "Hello", that has 5 letters. I need to do this so that I can convert each letter into it's own ASCII number, move it say 1 or 2 places to the right, convert it back into a string, and output it on the screen.

So, to do so, would I need a loop to find how many letters there are? If so how would I do that?

Thanks in advance :)
Last edited on
Can you put the text into an std::string and then use string.length()?
@Shadowmouse
Thank you, you're right!
I cant believe it was under my nose the whole time. Thanks once again for probably taking your time for an easy question like this :)
Topic archived. No new replies allowed.