Announcement

Collapse
No announcement yet.

Wandeln von CString in einen int wert

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wandeln von CString in einen int wert

    Ich habe folgendes Problem... Ich habe mehrere werte in einem Textfile abgespeichert.. einige Bools, Strings und ints. Die Bools habe ich mit einer if else funktion ausgewertet, aber die int werte bekomme ich nicht raus!

    Weiss jemand wie das geht?

    Besten dank im voraus

  • #2
    Hi Mathias<BR><BR>
    CString si = "1234";<BR>
    CString sf = "1.234";<BR>
    int wi = atoi(si);<BR>
    float wf = atof(sf);<BR>

    <BR><BR>´Gruss Geof

    Comment


    • #3
      Schau' Dir mal folgendes FAQ an: http://www.codeguru.com/forum/showthread.php?s=&threadid=23105

      Comment

      Working...
      X