using string as a data type, how to make a program where you input a name and then coverts the letters a to @, e to ^, i to !, o to * and u to $ regardless if it is upper or lower case.
I need to first input the name and the program will change the letters.
this is the sample output:
Enter a name: Noah U. Collymore
Encrypted: N*@h $. C*llym*r^
If you have a large number of mappings, then you could also use a lookup-table or std::map, so that you don't have to write a case for each mapping. But I think that's overkill for your simple example...
I made this awhile ago. It works correctly but I forget how it works and I wrote it in a way that was intentionally deceptive. I've even looked at it after the fact and have a rough time understanding how it works. I think it was dependent on other code in a different part of the program to work correctly but it may give you some ideas. https://pastebin.com/f4JNsmEV