Espacios de nombres
Variantes
Acciones

Input/output library

De cppreference.com
< cpp


 
 
Entrada / salida de la biblioteca
I / O manipuladores
C-estilo I / O
Buffers
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(obsoleto)
Arroyos
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstracciones
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
File 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
Cadena de 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
Matriz 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(obsoleto)
ostrstream(obsoleto)
strstream(obsoleto)
Tipos
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
Error interfaz categoría
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 + + incluye dos entradas / salidas bibliotecas: una moderna, basada en secuencias de E / S de la biblioteca y el conjunto estándar de C-estilo de funciones I / O .
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.

Contenido

[editar] Stream basada I / O

La corriente a base de entrada / salida de la biblioteca se organiza en torno a la entrada abstracto / dispositivos de salida. Estos dispositivos abstractos permitir el mismo código para manejar la entrada / salida de archivos, secuencias memoria o dispositivos personalizados adaptador que realizan operaciones arbitrarias (compresión, por ejemplo) sobre la marcha .
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.
La mayoría de las clases son con plantilla, para que puedan ser adaptados a cualquier tipo de carácter básico. Typedefs separadas para los tipos de caracteres más comunes básicos (char y wchar_t). Las clases se organizan en la jerarquía siguiente:
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
Acerca de esta imagen

Inheritance diagram

Abstracción
Original:
Abstraction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
gestiona las banderas de formateo y excepciones de entrada / salida
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.

(clase)
administra un búfer de la secuencia arbitraria
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.

(clase de plantilla)
abstrae un dispositivo sin procesar
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.

(clase de plantilla)
envuelve un determinado dispositivo abstracto (std::basic_streambuf)
y proporciona un alto nivel de interfaz de entrada
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.

(clase de plantilla)
envuelve un determinado dispositivo abstracto (std::basic_streambuf)
y proporciona un alto nivel de la interfaz de salida
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.

(clase de plantilla)
envuelve un determinado dispositivo abstracto (std::basic_streambuf)
y proporciona un alto nivel de entrada / salida de la interfaz
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.

(clase de plantilla)
File I / ejecución 0
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.
implementa dispositivo de archivo RAW
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.

(clase de plantilla)
implementos de alto nivel de archivos operaciones de entrada de la corriente
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.

(clase de plantilla)
implementos de alto nivel de archivos operaciones de salida de la corriente
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.

(clase de plantilla)
implementos de alto nivel de archivos de flujo de entrada / salida de las operaciones
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.

(clase de plantilla)
Cadena de E / ejecución 0
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.
implementa dispositivo cadena cruda
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.

(clase de plantilla)
implementa alto nivel de cuerda operaciones de entrada de la corriente
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.

(clase de plantilla)
implementa alto nivel de cuerda operaciones de salida de la corriente
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.

(clase de plantilla)
implementa alto nivel de cadena flujo de entrada / salida de las operaciones
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.

(clase de plantilla)
Matriz de E / S implementaciones
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.
(obsoleto)
implementa dispositivo sin formato array de caracteres
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.

(clase)
(obsoleto)
implementa las operaciones de entrada de caracteres de la matriz
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.

(clase)
(obsoleto)
implementa carácter operaciones de salida de la matriz
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.

(clase)
(obsoleto)
implementa caracteres de matriz de entrada / salida de las operaciones
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.

(clase)

[editar] Typedefs

Las siguientes definiciones de tipo para los tipos de caracteres comunes están disponibles:
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|basic_streambuf typedef streambuf <char>;|typedef basic_streambuf<char>     streambuf;}}
{{tr|basic_streambuf typedef wstreambuf <wchar_t>;|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|basic_istream typedef istream <char>;|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.
Predefinidos objetos de flujo estándar:
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, entrada / / estándar (stdin)|extern  istream  cin;   //standard input (stdin)}}
{{tr|extern wistream WCIN;|extern wistream wcin;}}
{{tr|extern ostream cout, y la salida / / estándar (stdout)|extern  ostream  cout;  //standard output (stdout)}}
{{tr|extern wostream wcout;|extern wostream wcout;}}
{{tr|extern ostream cerr, el error / / estándar (stderr)|extern  ostream  cerr;  //standard error (stderr)}}
{{tr|extern wostream wcerr;|extern wostream wcerr;}}
{{tr|extern obstrucción ostream; log / / estándar (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.

[editar] I / O Manipuladores

La corriente a base de E / S biblioteca utiliza I / O manipuladores (por ejemplo std::boolalpha, std::hex, etc) para controlar cómo se comportan las corrientes .
Original:
The stream-based I/O library uses I / O manipuladores (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.

[editar] Tipos

Los tipos de auxiliares se definen los siguientes:
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>
representa relativa archivo / flujo de posición (desplazamiento desde FPO), suficiente para representar cualquier tamaño de archivo
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)
representa el número de caracteres transmitidos en una operación de E / S o el tamaño de un búfer I / O
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)
representa la posición absoluta en una corriente o un archivo
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.

(clase de plantilla)
Cuatro especializaciones de std::fpos están disponibles:
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>
Tipo
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>

[editar] Error interfaz categoría

Defined in header <ios>
(C++11)
los códigos IO secuencia de error
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]
identifica la categoría de error iostream
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.

(función) [edit]

[editar] Estilo C IO

C + + también incluye la de entrada / salida de las funciones definidas por C, tales como std::fopen, std::getc, etc
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.