String in int umwandeln
-
Hallo,
was mache ich hier falsch?
char* text = "23";
int a = int.Parse(text);Bekomme folgende Fehlermeldung:
'int'-Typ unerwertetDanke!
lg,
shed
-
Du mischt hier C#/Java mit C++. Wie du String->int und int->String hinbekommst findest du in der C++-FAQ.
MfG SideWinder
-
int a = atoi (text);
merke:
a -> string
i -> integervon a TO i(argument)
-
danke
