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
4 Antworten
+ 2
u have to change the number to string and use this
unsigned m = str_num.find('.');
str[m] = ','
+ 1
Do you mean replacing dot with comma?
+ 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.
0
Yes