Umm, honestly, I didn't start because I'm not getting what to do. Basically my idea is to make a text encrypter. So I want the text to convert into a code and then again convert into normal text.
If you are trying to make a cipher you can modify the characters directly.
1 2 3
std::string str = "Hello World!";
for( int i = 0; str[i]; ++i )
++str[i];
of course this is a very basic one and does not check if they are letters and loop back when they go past 'z' you can however modify for that to make a basic caesar cipher.