Verhasste FLOATS



  • Hi, also ich habe mehrere Probleme:

    1. Wie kann ich float werte in einen Sring über wsprintf schreiben ohne das ein Runtime error kommt floating point not loaded und was heist dieser?

    2. Wie kann ich ein uint zu einem Float umwandeln? bei (f = i, f = (float)i, ...) wird f immer nur 0.

    3. Welche konvertirungen im stil alla X = (XType) a; sind erlaubt?

    Danke



  • 1. Laut MSDN Library gibt es keine Möglichkeit dafür (wsprintf ist keine Standard-Funktion).
    2. f = static_cast<float>(i);
    3. Eigentlich keine, weil das der alte C-Cast ist.


Anmelden zum Antworten