Namensräume
Varianten
Aktionen

Input/output library

Aus cppreference.com
< cpp


 
 
Input / Output-Bibliothek
I / O-Manipulatoren
C-style I / O
Puffern
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(veraltet)
Streams
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstraktionen
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
Datei-I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
String I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Array I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(veraltet)
ostrstream(veraltet)
strstream(veraltet)
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Fehler Kategorie Schnittstelle
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
C + + enthält zwei Input / Output-Bibliotheken: ein modernes, Stream-basierte I / O-Bibliothek und der Standard-Satz von C-style I / O-Funktionen .
Original:
C++ includes two input/output libraries: a modern, stream-based I/O library and the standard set of C-style I/O functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Stream-basierte I / O

Der Stream-basierte Eingabe / Ausgabe-Bibliothek ist um abstrakte Eingabe / Ausgabevorrichtungen organisiert. Diese abstrakten Geräte ermöglichen den gleichen Code zur Eingabe / Ausgabe von Dateien, Speicher-Streams oder benutzerdefinierten Adapter Geräte, die beliebige Operationen (zB Kompression) on the fly durchführen zu behandeln .
Original:
The stream-based input/output library is organized around abstract input/output devices. These abstract devices allow the same code to handle input/output to files, memory streams, or custom adaptor devices that perform arbitrary operations (e.g. compression) on the fly.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die meisten Klassen sind Vorlagen, so dass sie zu keiner grundsätzlichen Charakter-Typ angepasst werden. Separate typedefs sind für die gemeinsamen grundlegenden Charakter-Typen zur Verfügung gestellt (char und wchar_t). Die Klassen sind in der folgenden Hierarchie organisiert:
Original:
Most of the classes are templated, so they can be adapted to any basic character type. Separate typedefs are provided for the most common basic character types (char and wchar_t). The classes are organized into the following hierarchy:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
cpp/io/ios basecpp/io/basic ioscpp/io/basic istreamcpp/io/basic ifstreamcpp/io/basic istringstreamcpp/io/basic ostreamcpp/io/basic ofstreamcpp/io/basic ostringstreamcpp/io/basic fstreamcpp/io/basic stringstreamcpp/io/basic iostreamstd-io-complete-inheritance.svg
Über dieses Bild

Inheritance diagram

definiert. Abstraktion
Original:
Abstraction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
verwaltet Formatierung Fahnen und Eingabe / Ausgabe-Ausnahmen
Original:
manages formatting flags and input/output exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klasse)
verwaltet eine beliebige Strompuffers
Original:
manages an arbitrary stream buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
abstrahiert ein Raw-Gerät
Original:
abstracts a raw device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
wickelt einen bestimmten abstrakten Gerät (std::basic_streambuf)
und bietet High-Level-Input-Schnittstelle
Original:
wraps a given abstract device (std::basic_streambuf)
and provides high-level input interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
wickelt einen bestimmten abstrakten Gerät (std::basic_streambuf)
und bietet High-Level-Output-Schnittstelle
Original:
wraps a given abstract device (std::basic_streambuf)
and provides high-level output interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
wickelt einen bestimmten abstrakten Gerät (std::basic_streambuf)
und bietet High-Level Input / Output-Schnittstelle
Original:
wraps a given abstract device (std::basic_streambuf)
and provides high-level input/output interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
Datei-I / 0 Umsetzung
Original:
File I/0 implementation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
implementiert Rohdatei Gerät
Original:
implements raw file device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-Datei-Stream Input Operationen
Original:
implements high-level file stream input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-Datei-Stream Output-Operationen
Original:
implements high-level file stream output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-Datei-Stream Input / Output-Operationen
Original:
implements high-level file stream input/output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
String I / 0 Umsetzung
Original:
String I/0 implementation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
implementiert raw String-Gerät
Original:
implements raw string device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-String-Stream Input Operationen
Original:
implements high-level string stream input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-String-Stream Output-Operationen
Original:
implements high-level string stream output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
implementiert High-Level-String-Stream Input / Output-Operationen
Original:
implements high-level string stream input/output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
Array I / O-Implementierungen
Original:
Array I/O implementations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(veraltet)
implementiert raw Zeichenarray Gerät
Original:
implements raw character array device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klasse)
(veraltet)
implementiert Zeichenarray Eingabeoperationen
Original:
implements character array input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klasse)
(veraltet)
implementiert Zeichenarray Output-Operationen
Original:
implements character array output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klasse)
(veraltet)
implementiert Zeichenarray Input / Output-Operationen
Original:
implements character array input/output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klasse)

[Bearbeiten] Typedefs

Die folgenden Typdefinitionen für gemeinsame Charakter-Typen stehen zur Verfügung:
Original:
The following typedefs for common character types are provided:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
|<source lang="cpp">}}
{{tr|typedef basic_ios <char> ios;|typedef basic_ios<char>                ios;}}
{{tr|typedef basic_ios <wchar_t> WiOS;|typedef basic_ios<wchar_t>            wios;}}
 
{{tr|typedef basic_streambuf <char> streambuf;|typedef basic_streambuf<char>     streambuf;}}
{{tr|typedef basic_streambuf <wchar_t> wstreambuf;|typedef basic_streambuf<wchar_t> wstreambuf;}}
{{tr|typedef basic_filebuf <char> filebuf;|typedef basic_filebuf<char>         filebuf;}}
{{tr|typedef basic_filebuf <wchar_t> wfilebuf;|typedef basic_filebuf<wchar_t>     wfilebuf;}}
{{tr|typedef basic_stringbuf <char> stringbuf;|typedef basic_stringbuf<char>     stringbuf;}}
{{tr|typedef basic_stringbuf <wchar_t> wstringbuf;|typedef basic_stringbuf<wchar_t> wstringbuf;}}
 
{{tr|typedef basic_istream <char> istream;|typedef basic_istream<char>         istream;}}
{{tr|typedef basic_istream <wchar_t> wistream;|typedef basic_istream<wchar_t>     wistream;}}
{{tr|typedef basic_ostream <char> ostream;|typedef basic_ostream<char>         ostream;}}
{{tr|typedef basic_ostream <wchar_t> wostream;|typedef basic_ostream<wchar_t>     wostream;}}
{{tr|typedef basic_iostream <char> iostream;|typedef basic_iostream<char>       iostream;}}
{{tr|typedef basic_iostream <wchar_t> wiostream;|typedef basic_iostream<wchar_t>   wiostream;}}
 
{{tr|typedef basic_ifstream <char> ifstream;|typedef basic_ifstream<char>       ifstream;}}
{{tr|typedef basic_ifstream <wchar_t> wifstream;|typedef basic_ifstream<wchar_t>   wifstream;}}
{{tr|typedef basic_ofstream <char> ofstream;|typedef basic_ofstream<char>       ofstream;}}
{{tr|typedef basic_ofstream <wchar_t> wofstream;|typedef basic_ofstream<wchar_t>   wofstream;}}
{{tr|typedef basic_fstream <char> fstream;|typedef basic_fstream<char>         fstream;}}
{{tr|typedef basic_fstream <wchar_t> wfstream;|typedef basic_fstream<wchar_t>     wfstream;}}
 
{{tr|typedef basic_istringstream <char> istringstream;|typedef basic_istringstream<char>     istringstream;}}
{{tr|typedef basic_istringstream <wchar_t> wistringstream;|typedef basic_istringstream<wchar_t> wistringstream;}}
{{tr|typedef basic_ostringstream <char> ostringstream;|typedef basic_ostringstream<char>     ostringstream;}}
{{tr|typedef basic_ostringstream <wchar_t> wostringstream;|typedef basic_ostringstream<wchar_t> wostringstream;}}
{{tr|typedef basic_stringstream <char> stringstream;|typedef basic_stringstream<char>       stringstream;}}
{{tr|typedef basic_stringstream <wchar_t> wstringstream;|typedef basic_stringstream<wchar_t>   wstringstream;}}
{{tr|</ Source>|
Original:
{{{2}}}
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Vordefinierte Standard-Stream-Objekte:
Original:
Predefined standard stream objects:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
|<source lang="cpp">}}
{{tr|extern istream cin / / Standardeingabe (stdin)|extern  istream  cin;   //standard input (stdin)}}
{{tr|extern wistream wcin;|extern wistream wcin;}}
{{tr|extern ostream cout / / Standard-Ausgabe (stdout)|extern  ostream  cout;  //standard output (stdout)}}
{{tr|extern wostream wcout;|extern wostream wcout;}}
{{tr|extern ostream cerr; / / Standardfehler (stderr)|extern  ostream  cerr;  //standard error (stderr)}}
{{tr|extern wostream wcerr;|extern wostream wcerr;}}
{{tr|extern ostream clog / / Standard-log (stdlog)|extern  ostream  clog;  //standard log (stdlog)}}
{{tr|extern wostream wclog;|extern wostream wclog;}}
{{tr|</ Source>|
Original:
{{{2}}}
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] I / O-Manipulatoren

Die Stream-basierte I / O-Bibliothek verwendet I / O-Manipulatoren (zB std::boolalpha, std::hex, etc.) zu steuern, wie Ströme verhalten .
Original:
The stream-based I/O library uses I / O-Manipulatoren (e.g. std::boolalpha, std::hex, etc.) to control how streams behave.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Types

Folgende Hilfs-Typen definiert sind:
Original:
The following auxiliary types are defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <ios>
stellt relativen Datei / stream Position (Offset von FPOS) ausreichen, um eine beliebige Datei Größe darstellen
Original:
represents relative file/stream position (offset from fpos), sufficient to represent any file size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)
repräsentiert die Anzahl von Zeichen in einem I / O-Operation oder der Größe eines I / O-Puffer übertragen
Original:
represents the number of characters transferred in an I/O operation or the size of an I/O buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)
stellt absolute Position in einem Stream oder einer Datei
Original:
represents absolute position in a stream or a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Klassen-Template)
Vier Spezialisierungen std::fpos sind vorgesehen:
Original:
Four specializations of std::fpos are provided:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <ios>
Type
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
streampos std::fpos<std::char_traits<char>::state_type>
u16streampos std::fpos<std::char_traits<char16_t>::state_type>
u32streampos std::fpos<std::char_traits<char32_t>::state_type>
wstreampos std::fpos<std::char_traits<wchar_t>::state_type>

[Bearbeiten] Fehler Kategorie Schnittstelle

Defined in header <ios>
(C++11)
die IO-Stream Fehlercodes
Original:
the IO stream error codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(enum) [edit]
identifiziert die iostream error Kategorie
Original:
identifies the iostream error category
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]

[Bearbeiten] C-style IO

C + + auch die Eingabe / Ausgabe-Funktionen, die durch C wie std::fopen, std::getc, etc.
Original:
C++ also includes the Eingabe / Ausgabe-Funktionen, die durch C, such as std::fopen, std::getc, etc.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.