-2
Hey, guys, good morning. I’m starting in C programming (I come from Python and Javascript).
I have a problem using the setLocale function, which defines the type of language used, allowing the use of accentuation and etc. When I put the function in my program and type any value using the dot (example: 0.4) the program terminates instanttaneously. I know the error is in the setLocale, because when I take the function the program runs as expected.
Below is my code:
Note: The purpose of using Setlocale (which is to use accentuation and tals) works correctly, I just don’t understand the error.
Include the code always as text and format it with
Ctrl-k
or by using the button{}
of the editor– Isac