Was hast du dir gedacht, was das %s darstellen soll?Code:az = strtof(%s,NULL); //kompilerfehler %s
%f ist der Platzhalter für ein double, nicht für ein float.Code:float x; ... printf("\ndas ist der float %f", x);//falscher Wert
Was hast du dir gedacht, was das %s darstellen soll?Code:az = strtof(%s,NULL); //kompilerfehler %s
%f ist der Platzhalter für ein double, nicht für ein float.Code:float x; ... printf("\ndas ist der float %f", x);//falscher Wert
MfG
Stefan
Lesezeichen