std::setfill
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. |
Elemento definito nell'header <iomanip> | ||
template<class CharT > /*unspecified*/ setfill( CharT c ); | ||
Quando viene utilizzato in un out << setfill(c) espressione imposta il carattere di riempimento della
out
flusso di c
.Original:
When used in an expression out << setfill(c) sets the fill character of the stream
out
to c
.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.
Indice |
[modifica]Parametri
c | - | nuovo valore per il carattere di riempimento Original: new value for 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. |
[modifica]Valore di ritorno
Restituisce un oggetto di tipo tale che, se non specificato
out
è il nome di un flusso di uscita di tipo std::basic_ostream<CharT, Traits>, allora l'espressione out << setfill(n) comporta come se il codice è stato eseguito il seguente:Original:
Returns an object of unspecified type such that if
out
is the name of an output stream of type std::basic_ostream<CharT, Traits>, then the expression out << setfill(n) behaves as if the following code was executed: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.
out.fill(n);
[modifica]Esempio
Output:
default fill: 42 setfill('*'): ********42
[modifica]Vedi anche
gestisce il carattere di riempimento Original: manages 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. (metodo pubblico) | |
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 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) |