Question: C++ How would I DECODE a string that's been inputted by the user using the following array? The DECODED string must be returned in a
C++ How would I DECODE a string that's been inputted by the user using the following array? The DECODED string must be returned in a new string, not just printed out with cout. For instance, "GFKKP" would translate to "HELLO". This would go inside a class function named decode(string), so please adjust the code accordingly.

This will create the key in Client and translates to A B, B A, D C, and C D and continue with this pattern. This means that position 0 equals A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
