Skocz do zawartości

Recommended Posts

Napisano

nom od czego by tu zaczonć. Więc tak w C++i W WinApi to ja jestem poczontkujoncy no i mam takowy problem z kowersjami a miaowicie tekst(Pchar) na integer. (Ale gdyby mgł ktoś wytłumaczyć inne to thanks.). I nie odsyłajcie mnie do Platform SDK bo sie nie uda.(próbowałem, tego jest tyle jeszcze po jakiemyś innemu(z angielskim jast jak jest))

Napisano

Na tym forum ten temat wielokrotnie padł i był dokładnie wyjaśniony. Funkcje konwetujące napis na liczbe i odwrotnie są następujące (trzeba to chyba do FAQ dać):

atof Convert string to float
atoi, _atoi64 Convert string to int
atol Convert string to long
_ecvt Convert double to string of specified length
_fcvt Convert double to string with specified number of digits following decimal point
_gcvt Convert double number to string; store string in buffer
_itoa, _i64toa, _itow, _i64tow Convert int to string
_ltoa, _ltow Convert long to string
strtod, wcstod Convert string to double
strtol, wcstol Convert string to long integer
strtoul, wcstoul Convert string to unsigned long integer
_ultoa, _ultow Convert unsigned long to string
_wtoi Convert wide-character string to int
_wtol Convert wide-character string to long

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gość
Odpowiedz...

×   Wkleiłeś zawartość bez formatowania.   Usuń formatowanie

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Utwórz nowe...