Input/output manipulators
Da cppreference.com.
|
|
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. |
Manipolatori sono funzioni di supporto che permettono di controllare flussi input / output utilizzando operator<< o operator>>.
Original:
Manipulators are helper functions that make it possible to control input/output streams using operator<< or operator>>.
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.
I manipolatori che vengono richiamati senza argomenti (ad esempio std::cout << std::boolalpha; o std::cin >> std::hex;) sono implementate come funzioni che richiedono un riferimento a un flusso come il loro unico argomento. Gli overload speciali di basic_ostream::operator<< e basic_istream::operator>> accettare puntatori a queste funzioni.
Original:
The manipulators that are invoked without arguments (e.g. std::cout << std::boolalpha; or std::cin >> std::hex;) are implemented as functions that take a reference to a stream as their only argument. The special overloads of basic_ostream::operator<< and basic_istream::operator>> accept pointers to these functions.
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.
I manipolatori che vengono richiamati con argomenti (ad esempio std::cout << std::setw(10);) sono implementate come funzioni che restituiscono oggetti di tipo non specificato. Questi manipolatori definire la loro
operator<< oppure operator>> che svolgono la manipolazione richiesto.Original:
The manipulators that are invoked with arguments (e.g. std::cout << std::setw(10);) are implemented as functions returning objects of unspecified type. These manipulators define their own
operator<< or operator>> which perform the requested manipulation.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.
| Definizione nell'header
<ios> | |
| passa tra la rappresentazione testuale e numerica di valori booleani Original: switches between textual and numeric representation of booleans The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| controlla se il prefisso è usato per indicare base numerica Original: controls whether prefix is used to indicate numeric base The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| controlla se il punto decimale è sempre inclusi in virgola mobile Original: controls whether decimal point is always included in floating-point representation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| controlla se il segno + utilizzati con numeri non negativiOriginal: controls whether the + sign used with non-negative numbersThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| Controlla se spazi bianchi è saltato in ingresso Original: controls whether leading whitespace is skipped on input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| controls whether uppercase characters are used with some output formats (funzione) | |
| controlla se l'uscita viene lavata dopo ogni operazione Original: controls whether output is flushed after each operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| imposta il collocamento di caratteri di riempimento Original: sets the placement of fill characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| modifica la base utilizzata per intero di I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| (C++11) (C++11) |
Le modifiche di formattazione utilizzati per floating-point I / O Original: changes formatting used for floating-point I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
| Definizione nell'header
<istream> | |
| consuma spazi Original: consumes whitespace The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| Definizione nell'header
<ostream> | |
| uscite '\0' Original: outputs '\0' The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| svuota il flusso di output Original: flushes the output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| uscite '\n' e colori nel flusso di output Original: outputs '\n' and flushes the output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| Definizione nell'header
<iomanip> | |
| cancella le bandiere ios_base specificati Original: clears the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| imposta i flag ios_base specificati Original: sets the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| modifica la base utilizzata per intero di I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| cambia il carattere di riempimento Original: changes the fill character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| cambiamenti in virgola mobile di precisione Original: changes floating-point precision The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| modifica la larghezza dell'ingresso successivo / campo di uscita Original: changes the width of the next input/output field The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
| (C++11) |
analizza un valore monetario Original: parses a monetary value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) |
| (C++11) |
i formati e le uscite di un valore monetario Original: formats and outputs a monetary value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) |
| (C++11) |
analizza un valore data / ora del formato specificato Original: parses a date/time value of specified format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) |
| (C++11) |
i formati e le uscite di un valore data / ora secondo il formato specificato Original: formats and outputs a date/time value according to the specified format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) |