Replacing Text

Problem 1
Create a program call FindReplace to find the word Hello and replace it with the word Hola.
Cree un programa llamadao FindReplace para encontrar la palabra Hello y reemplazarla con la palabra Hola.

void FindReplace::Window_Open(Win::Event& e)
     this->tbxInput.Text = L"hello world is the a hello program";

void FindReplace::btReplace_Click(Win::Event& e)
     //wregex reg(L"hello");
     wregex reg(L"hello");
     wstring replacement(L"hola");
     //tbxOutput.Text =regex_replace(tbxInput.Text, reg, replacement);
     tbxOutput.Text = regex_replace(tbxInput.Text, reg, replacement);

© Copyright 2000-2019 Wintempla selo. All Rights Reserved. Sep 05 2019. Home