Namespace
Varianti

Input/output library

Da cppreference.com.
< cpp


 
 
Ingresso / libreria di output
I / O manipolatori
C-style I / O
Buffer
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(deprecato)
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.
Astrazioni
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
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(deprecato)
ostrstream(deprecato)
strstream(deprecato)
Tipi
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
Errore categoria interfaccia
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 + + include due input / output biblioteche: un moderno, basato sul flusso di I / O biblioteca e il set standard di C-stile funzioni 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.

Indice

[modifica] Basato sul flusso di I / O

Il flusso a base di input / output della libreria è organizzato intorno a ingresso astratto / dispositivi di uscita. Questi dispositivi permettono astratte lo stesso codice per gestire l'input / output di file, flussi di memoria, adattatori o dispositivi personalizzati che consentono di eseguire operazioni di compressione arbitrari (ad esempio) al volo.
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 maggior parte delle classi sono templato, in modo che possano essere adattati a qualsiasi tipo di carattere di base. Typedef separati sono previsti per i più comuni tipi di caratteri di base (char e wchar_t). Le classi sono organizzate nel seguente gerarchia:
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
Informazioni sull'immagine

Inheritance diagram

Astrazione
Original:
Abstraction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
gestisce i flag di formattazione e di ingresso / uscita eccezioni
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.

(classe)
gestisce un buffer arbitraria flusso
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.

(classe template)
astrae un dispositivo raw
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.

(classe template)
avvolge un determinato dispositivo astratto (std::basic_streambuf)
e fornisce un elevato livello di interfaccia di input
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.

(classe template)
avvolge un determinato dispositivo astratto (std::basic_streambuf)
e fornisce un elevato livello di interfaccia di uscita
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.

(classe template)
avvolge un determinato dispositivo astratto (std::basic_streambuf)
e fornisce un elevato livello di ingresso / uscita di interfaccia
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.

(classe template)
File I / 0 di attuazione
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 raw file
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.

(classe template)
implementa alto livello file di operazioni di input stream
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.

(classe template)
implementa alto livello file di operazioni di output stream
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.

(classe template)
implementa alto livello stream file di input / output
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.

(classe template)
String I / 0 di attuazione
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 raw stringa
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.

(classe template)
implementa alto livello di stringa operazioni di input stream
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.

(classe template)
implementa alto livello di stringa operazioni di output stream
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.

(classe template)
implementa alto livello di stringa flusso di input / output
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.

(classe template)
Array di I / O implementazioni
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.
(deprecato)
implementa dispositivo raw array di caratteri
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.

(classe)
(deprecato)
implementa le operazioni di input dei caratteri di matrice
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.

(classe)
(deprecato)
implementa operazioni di output di array di caratteri
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.

(classe)
(deprecato)
implementa caratteri matrice di input / output
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.

(classe)

[modifica] Typedef

Le seguenti typedef per i tipi di caratteri comuni sono:
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 wios <wchar_t>;|typedef basic_ios<wchar_t>            wios;}}
 
{{tr|typedef <char> streambuf basic_streambuf;|typedef basic_streambuf<char>     streambuf;}}
{{tr|typedef <wchar_t> wstreambuf basic_streambuf;|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 <char> IStream basic_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.
Predefiniti di oggetti standard: flusso
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, ingresso / / standard (stdin)|extern  istream  cin;   //standard input (stdin)}}
{{tr|extern wistream wcin;|extern wistream wcin;}}
{{tr|extern ostream cout; uscita / / standard (stdout)|extern  ostream  cout;  //standard output (stdout)}}
{{tr|extern wostream wcout;|extern wostream wcout;}}
{{tr|extern ostream cerr; errore / / standard (stderr)|extern  ostream  cerr;  //standard error (stderr)}}
{{tr|extern wostream wcerr;|extern wostream wcerr;}}
{{tr|extern zoccolo ostream; log / / standard (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.

[modifica] I / O manipolatori

Il flusso a base di I / O libreria utilizza I / O manipolatori (ad esempio std::boolalpha, std::hex, ecc) per controllare come si comportano i flussi.
Original:
The stream-based I/O library uses I / O manipolatori (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.

[modifica] Tipi

I seguenti tipi ausiliari sono definiti:
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.
Definizione nell'header <ios>
rappresenta il relativo file / flusso di posizione (offset da fpos), sufficiente per rappresentare qualsiasi dimensione di file
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)
rappresenta il numero di caratteri trasferiti in un I / O o la dimensione di un buffer di 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)
rappresenta la posizione assoluta in un ruscello o di un file
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.

(classe template)
Quattro specializzazioni di std::fpos sono previsti:
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.
Definizione nell'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>

[modifica] Errore categoria interfaccia

Definizione nell'header <ios>
(C++11)
il flusso IO codici di errore
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) [modifica]
identifica la categoria di errore 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.

(funzione) [modifica]

[modifica] C-stile IO

C + + include anche il input / output definito da C, come std::fopen, std::getc, ecc
Original:
C++ also includes the input / output definito da 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.