cpp/string/basic string/to string: differenze tra le versioni
Da cppreference.com.
< cpp | string | basic string
P12 (Discussione | contributi) m (una revisione importata: Translate from the English version) |
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh) |
||
Riga 70: | Riga 70: | ||
{{dcl list template | cpp/string/basic_string/dcl list to_wstring}} | {{dcl list template | cpp/string/basic_string/dcl list to_wstring}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
Versione delle 10:47, 2 nov 2012
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Defined in header <string>
|
||
std::string to_string( int value ); |
(1) | (dal C++11) |
std::string to_string( long value ); |
(2) | (dal C++11) |
std::string to_string( long long value ); |
(3) | (dal C++11) |
std::string to_string( unsigned value ); |
(4) | (dal C++11) |
std::string to_string( unsigned long value ); |
(5) | (dal C++11) |
std::string to_string( unsigned long long value ); |
(6) | (dal C++11) |
std::string to_string( float value ); |
(7) | (dal C++11) |
std::string to_string( double value ); |
(8) | (dal C++11) |
std::string to_string( long double value ); |
(9) | (dal C++11) |
1)
Converte un numero intero decimale con segno in una stringa con il contenuto stesso di quello che std::sprintf(buf, "%d", value) produrrebbe per
buf
sufficientemente grande.Original:
Converts a signed decimal integer to a string with the same content as what std::sprintf(buf, "%d", value) would produce for sufficiently large
buf
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
Converte un numero intero decimale con segno in una stringa con il contenuto stesso di quello che std::sprintf(buf, "%ld", value) produrrebbe per
buf
sufficientemente grande..Original:
Converts a signed decimal integer to a string with the same content as what std::sprintf(buf, "%ld", value) would produce for sufficiently large
buf
..The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
3)
Converte un numero intero decimale con segno in una stringa con il contenuto stesso di quello che std::sprintf(buf, "%lld", value) produrrebbe per
buf
sufficientemente grande.Original:
Converts a signed decimal integer to a string with the same content as what std::sprintf(buf, "%lld", value) would produce for sufficiently large
buf
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
4)
Converte un numero intero senza segno decimale in una stringa con il contenuto stesso di quello che std::sprintf(buf, "%u", value) produrrebbe per
buf
sufficientemente grande.Original:
Converts an unsigned decimal integer to a string with the same content as what std::sprintf(buf, "%u", value) would produce for sufficiently large
buf
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
5)
Converte un numero intero senza segno decimale in una stringa con il contenuto stesso di quello che