How can I replace a letter from one array to the letter from the other? And vice versa. For example a <-> x, b <-> y, c <-> z
.
Code in C++ , please
txtText->setText(txtText->toPlainText().replace(prep[a],QString("x")));
txtText->setText(txtText->toPlainText().replace(prep[b],QString("y")));
txtText->setText(txtText->toPlainText().replace(prep[c],QString("z")));
or how? I don't understand