Croatian standard language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Croatian standard language

How do I write a code that from english it changes to croatian: e.g. Input: 0.67 Output: 0,67

15th Feb 2021, 12:00 PM
Dr. Alien
Dr. Alien - avatar
4 Answers
+ 2
u have to change the number to string and use this unsigned m = str_num.find('.'); str[m] = ','
15th Feb 2021, 12:09 PM
Alpha Zero
Alpha Zero - avatar
+ 1
Do you mean replacing dot with comma?
15th Feb 2021, 12:01 PM
Abhay
Abhay - avatar
+ 1
You can read this code and replace "o" with "." and "O" with ",": https://code.sololearn.com/cGOiSuDc67Ps/?ref=app Tip: if you are getting input as float or [unsigned/signed] [long] double, do not to convert it with string using to_string(something) from the <string> library.
15th Feb 2021, 12:14 PM
#0009e7 [get]
#0009e7 [get] - avatar
0
Yes
15th Feb 2021, 12:04 PM
Dr. Alien
Dr. Alien - avatar