Making one string another string....

Hi, Im working on a program where the user inputs one word and the program outputs another ex. user enters: hello, program outputs: ......-...-..---

So my question is how would i convert one string to another?? Anyone?
That rather depends on the relationship between the input and the output.

EDIT: If the relationship is a straight conversion then a std::map might me useful.

http://www.cplusplus.com/reference/stl/map/
Last edited on
C++ strings are mutable, and they offer quite a bit of flexibility. If you run into problems please let us know.

http://www.cplusplus.com/reference/string/string/
Topic archived. No new replies allowed.