Convert string to numbers

Ok so I'm just starting to learn c++. I'm 15 and I'm picking it up fairly quickly. What I want to do is to use cin to input a string which can then be changed into numbers. Some kind of secret code. Then I can send these numbers to my friend who can use the same program to change hem back. I just want to know any interesting ways I can do this and figure out myself. If it is more complicated than I can probably understand at my very basic level that's fine just let me know. I'm just curious.
Topic archived. No new replies allowed.