c++ replace function

Hi! I’m new here. I’m need in c++ a string functions. That is one textbox to any textbiox transfer all character. But that is replaced. Example textbox1 text is "Hello, World" and that transferred then textbox2 "Хелло, Ворлд". I’m writed this program in vb. Here is example code:

1
2
3
4
5
6
7
Dim first as String = textbox1.text
First = Strings.Replace(First, "H", "Х")
First = Strings.Replace(First, "e", "е")
First = Strings.Replace(First, "l", "л")
First = Strings.Replace(First, "o", "о")

Textbox2.text = First 



Please help me this prohram to write in c++

(sorry my English is bad :( )
Look up the std::transform() algorithm and start there.
Topic archived. No new replies allowed.