I'm making a Caesar Cipher program using C++, just for practice with the language. I've run into trouble when I try to shift a character from a file over a number of places on the ASCII table. So say the character is A but I want to shift is 3 spaces so that it is C, I can't figure how to do that. I thought the addition operator would work like so.
However the result is the same letter originally given to c. If anyone knows how to do this I'd appreciate the help.
"The earth is the cradle of humankind, but one cannot live in the cradle forever."
~Konstantin Tsiolkovsky, 1895