Skocz do zawartości

Value to string?


Recommended Posts

Napisano

Nie znam takiej funkcji winapi, ale możesz użyć itoa, lub sprintf...

//------
int n_value = 12 ;
char sz_string[5] ;

itoa(n_value, sz_string, 10) ; 
//albo
sprintf(sz_string, "%d", n_value) ;
//------

Obie te funkcje znajdują się w pliku stdlib.h (chyba) ;)

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...