C + + Konzepte: UnformattedInputFunction
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
[Bearbeiten]Anforderungen
Ein
UnformattedInputFunction
ist ein Strom-Eingang Funktion, die die folgenden führt: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.
- Erzeugt ein Objekt vom Typ basic_istream::sentry mit automatischer Lagerdauer und mit dem
noskipws
Argument auf true, die folgende ausführtOriginal: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.
- wenn eofbit oder badbit auf der Input-Stream gesetzt, setzt die
failbit
als gut, und wenn Ausnahmen failbit in diesem Eingabestrom die Ausnahme Maske aktiviert, wirft 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. - spült die tie () 'd Ausgabe-Stream, falls zutreffendOriginal: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.
- Prüft den Status der Wache durch den Aufruf
sentry::operator bool()
, das entspricht basic_ios::good ist .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. - Wenn die Wache wieder false oder sentry Konstruktor hat eine Ausnahme: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.
- setzt die Anzahl von extrahierten Zeichen (gcount) in dem Eingangsstrom Null istOriginal: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. - wenn die Funktion aufgerufen wurde, um zu einer Anordnung von
CharT
einzutragen, schreibtCharT()
(der Null-Zeichen) zu der ersten Stelle des ArraysOriginal: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.
- Wenn die Wache true zurückgekehrt, führt der EingangOriginal: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.
- wenn eine Ausnahme während der Eingabe ausgelöst wird, setzt
badbit
im Eingabestrom. Wenn Ausnahmen badbit in diesem Strom der Ausnahmeliste Maske aktiviert ist, wird die Ausnahme auch erneut ausgelöst .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. - Wenn keine Ausnahme während der Eingabe geworfen wurde, legt die Anzahl der extrahierten Zeichen (gcount) in der Input-Stream .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 jedem Fall, ob Abschlusswiderstand by Exception oder Rückgabe wird der Wache destructor bevor diese Funktion aufgerufen .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.
[Bearbeiten]Standard-Bibliothek
Die folgenden Standard-Bibliothek Funktionen sind
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, außer dass es nicht modifiziert 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, außer dass es erste löscht
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, außer dass es erste löscht
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, außer dass es nicht modifiziert 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, außer dass es nicht modifiziert 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, außer dass es erste löscht
eofbit
und verändert nicht 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, außer dass es nicht modifiziert 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.