How do i increment letters in c++?

后端 未结 8 1299
渐次进展
渐次进展 2021-01-05 05:30

I\'m creating a Caesar Cipher in c++ and i can\'t figure out how to increment a letter.

I need to increment the letter by 1 each time and return the next letter in t

8条回答
  •  失恋的感觉
    2021-01-05 06:05

    It works but don't forget that if you increment 'z' you need to get 'a' so maybe you should pass by a check function that output 'a' when you get 'z'.

提交回复
热议问题