Turn the text from Russian letters to latin letters. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Turn the text from Russian letters to latin letters.

A text given with Russian alphabet letters.The question is that change it to English alphabet letters according to choosen string.How can I change it .One thing again ,I work with c++.

6th May 2018, 4:48 AM
Abdusamad
Abdusamad - avatar
3 Answers
+ 8
Firstly you would need some sort of lookup table/map inorder to compare letters. See std::map http://www.cplusplus.com/reference/map/map/map/ Then you could loop through each letter of a string and display its respective match. That said. I am sure there are many intricate details used in translation which will be missed using this method. Well anyway. Here is a table of letters. I can not vouch for its accuracy as I can not speak or read Russian. http://www.russianlessons.net/lessons/lesson1_alphabet.php
6th May 2018, 4:55 AM
jay
jay - avatar
0
https://code.sololearn.com/cc3NfARqMpq8/?ref=app
6th May 2018, 10:56 AM
Abdusamad
Abdusamad - avatar
0
Jay,I couldn't find except from that ,is it valid ,what is your opinion?
6th May 2018, 11:03 AM
Abdusamad
Abdusamad - avatar