Is there a way to change a single character in a char? like this example I have user input. The user should enter a number. If the number is float or double the user should enter a point. But if the User enters ',' (3,44 or 54,33) my code doesn't work. Is there a general way to change the comma to point? Like this:
char number1[50], number2[50];
number1 = 2,33;
number2 = 54,45;
turns into
number1 = 2.33;
number2= 54.34;
Thank you for any help!