C++ Letter to password

lynxAi

Member
Joined
Dec 7, 2019
Messages
15
Location
SiChuan China
Programming Experience
Beginner
To translate "China" into a password, the decoding rule is: replace the original letter with the fourth letter after the original letter. For example, the fourth letter after the letter "a" is "e". Replace "a" with "e". Therefore, "China" should be translated as "glmre". Please write a program to assign the initial values of five variables Cl, C2, C3, C4 and C5 as, 'C', 'H', 'I', 'n' and 'a'. After operation, C1, C2, C3, C4 and C5 are changed into 'g', 'l', 'm', 'R' and 'e' respectively and output.
 
Please do your own homework and, when you encounter an actual issue, post back and show us what you have done and explain where you are stuck. That said, this is a C# site exclusively so if your question is about C++ then it is not valid here.
 
Back
Top Bottom