<div class="t-tr-text">C + +: concetti<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> UnformattedInputFunction
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. |
[modifica] Requisiti
Un
UnformattedInputFunction
è una funzione di input flusso che esegue le seguenti operazioni:Original:
An
UnformattedInputFunction
is a stream input function that performs the following: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.
- Crea un oggetto di tipo basic_istream::sentry con durata memorizzazione automatica e con l'argomento
noskipws
impostato true, che esegue il seguenteOriginal:Constructs an object of type basic_istream::sentry with automatic storage duration and with thenoskipws
argument set to true, which performs the followingThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- se eofbit o badbit sono impostati sul flusso di input, imposta il
failbit
pure, e se eccezioni failbit sono abilitati in maschera di eccezione questo flusso di input, getta ios_base::failure.Original:if eofbit or badbit are set on the input stream, sets thefailbit
as well, and if exceptions on failbit are enabled in this input stream's exception mask, throws ios_base::failure.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - svuota il legame () "flusso di uscita d, se applicabileOriginal:flushes the tie()'d output stream, if applicableThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
- Verifica lo stato della sentinella chiamando
sentry::operator bool()
, che è equivalente a basic_ios::good.Original:Checks the status of the sentry by callingsentry::operator bool()
, which is equivalent to basic_ios::good.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Se la sentinella restituito false o il costruttore sentinella ha generato un'eccezione:Original:If the sentry returned false or sentry's constructor threw an exception:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- imposta il numero di caratteri estratti (gcount) nel flusso di ingresso a zeroOriginal:sets the number of extracted characters (gcount) in the input stream to zeroThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - se la funzione è stata chiamata a scrivere una serie di
CharT
, scriveCharT()
(il carattere null) alla prima posizione della matriceOriginal:if the function was called to write to an array ofCharT
, writesCharT()
(the null character) to the first location of the arrayThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
- Se la sentinella restituito true, esegue l'ingressoOriginal:If the sentry returned true, performs the inputThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- se viene generata un'eccezione durante l'ingresso, imposta
badbit
nel flusso di input. Se eccezioni badbit sono attivati in questa maschera di eccezione ruscello, l'eccezione viene rilanciata anche.Original:if an exception is thrown during input, setsbadbit
in the input stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Se nessuna eccezione è stata generata durante l'immissione, impostare il numero di caratteri estratti (gcount) nel flusso di input.Original:If no exception was thrown during input, sets the number of extracted characters (gcount) in the input stream.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
- In ogni caso, sia che chiude per eccezione o di ritorno, distruttore della sentinella è chiamato prima di lasciare questa funzione.Original:In any event, whether terminating by exception or returning, the sentry's destructor is called before leaving this function.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Libreria standard
Le seguenti funzioni della libreria standard sono
UnformattedInputFunction
s.Original:
The following standard library functions are
UnformattedInputFunction
s.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.
- std::getline, con la differenza che non modifica gcount.Original:std::getline, except that it does not modify gcount.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::operator>>(basic_streambuf*)
- basic_istream::get
- basic_istream::getline
- basic_istream::ignore
- basic_istream::peek
- basic_istream::read
- basic_istream::readsome
- basic_istream::putback, salvo che si cancella prima
eofbit
Original:basic_istream::putback, except that it first clearseofbit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::unget, salvo che si cancella prima
eofbit
Original:basic_istream::unget, except that it first clearseofbit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::sync, con la differenza che non modifica gcountOriginal:basic_istream::sync, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::tellg, con la differenza che non modifica gcountOriginal:basic_istream::tellg, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::seekg, salvo che si cancella prima
eofbit
e non modifica gcountOriginal:basic_istream::seekg, except that it first clearseofbit
and does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::ws, con la differenza che non modifica gcountOriginal:std::ws, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.