[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/io [Back]  [Original]

Input/output library cppreference.com
cppreference.com
Espaces de noms
Variantes

Input/output library

De cppreference.com
< cpp


 
 
D'entre / sortie de bibliothque
I / O manipulateurs
C-style I / O
Tampons
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 (obsolte)
Cours d'eau
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstractions
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
Fichier E / 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
Chane 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
Tableau 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 (obsolte)
ostrstream (obsolte)
strstream (obsolte)
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
Interface catgorie d'erreur
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 + + comprend deux entres / sorties bibliothques: une socit moderne, base sur les flux d'E / S de la bibliothque et de l'ensemble standard de style C I / O fonctions .
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.

Base sur les flux I / O

Le flux de base d'entre / sortie librairie est organise autour d'entre abstrait / priphriques de sortie. Ces dispositifs abstraits permettent le mme code pour grer les entres / sorties de fichiers, flux mmoire ou des priphriques adaptateurs personnaliss qui effectuent des oprations arbitraires (par exemple la compression) la vole .
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 plupart des classes sont un modle, de sorte qu'ils peuvent tre adapts tout type de caractre de base. Typedefs distinctes sont prvues pour les types les plus communs de caractres de base (char et wchar_t). Les classes sont organises dans la hirarchie suivante:
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.
std-io-complete-inheritance.svg [std-io-complete-inheritance.svg]

Inheritance diagram

Abstraction
Original:
Abstraction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
gre codes de formatage et d'entre / sortie exceptions
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)
gre une mmoire tampon de flux arbitraire
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 gnrique)
abstraction d'un priphrique brut
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 gnrique)
encapsule un priphrique donn abstrait (std::basic_streambuf)
et fournit une interface d'entre de haut niveau
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 gnrique)
encapsule un priphrique donn abstrait (std::basic_streambuf)
et fournit une interface de sortie de haut niveau
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 gnrique)
encapsule un priphrique donn abstrait (std::basic_streambuf)
et assure un haut niveau d'entre / sortie d'interface
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 gnrique)
Fichier E / 0 mise en uvre
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.
met en uvre de fichier de priphrique brut
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 gnrique)
met en uvre des oprations de haut niveau de fichiers de flux d'entre
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 gnrique)
met en uvre des oprations de haut niveau de fichiers de flux de sortie
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 gnrique)
met en uvre de haut niveau de fichiers de flux d'entre / sortie des oprations
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 gnrique)
Chane I / 0 mise en uvre
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.
met en uvre dispositif chane brute
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 gnrique)
met en uvre des oprations de haut niveau cordes de flux d'entre
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 gnrique)
met en uvre des oprations de haut niveau chane de flux de sortie
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 gnrique)
implmente haut niveau de chane de flux d'entre / sortie
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 gnrique)
Tableau d'E / S mises en uvre
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.
(obsolte)
met en uvre des premires appareil tableau de caractres
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)
(obsolte)
met en uvre des oprations de caractre tableau d'entre
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)
(obsolte)
met en uvre des oprations de caractre tableau de sortie
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)
(obsolte)
implmente caractres rseau d'entre / sortie
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)

Typedefs

Les typedefs suivantes pour les types de caractres communs sont fournis:
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 streambuf <char> basic_streambuf;|typedef basic_streambuf<char>     streambuf;}}
{{tr|typedef wstreambuf <wchar_t> basic_streambuf;|typedef basic_streambuf<wchar_t> wstreambuf;}}
{{tr|typedef <char> basic_filebuf filebuf;|typedef basic_filebuf<char>         filebuf;}}
{{tr|typedef basic_filebuf <wchar_t> wfilebuf;|typedef basic_filebuf<wchar_t>     wfilebuf;}}
{{tr|typedef <char> basic_stringbuf stringbuf;|typedef basic_stringbuf<char>     stringbuf;}}
{{tr|typedef basic_stringbuf <wchar_t> wstringbuf;|typedef basic_stringbuf<wchar_t> wstringbuf;}}

{{tr|typedef istream <char> 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 <char> basic_ifstream ifstream;|typedef basic_ifstream<char>       ifstream;}}
{{tr|typedef basic_ifstream <wchar_t> wifstream;|typedef basic_ifstream<wchar_t>   wifstream;}}
{{tr|typedef <char> basic_ofstream ofstream;|typedef basic_ofstream<char>       ofstream;}}
{{tr|typedef basic_ofstream <wchar_t> wofstream;|typedef basic_ofstream<wchar_t>   wofstream;}}
{{tr|typedef <char> basic_fstream fstream;|typedef basic_fstream<char>         fstream;}}
{{tr|typedef basic_fstream <wchar_t> wfstream;|typedef basic_fstream<wchar_t>     wfstream;}}

{{tr|typedef <char> basic_istringstream istringstream;|typedef basic_istringstream<char>     istringstream;}}
{{tr|typedef basic_istringstream <wchar_t> wistringstream;|typedef basic_istringstream<wchar_t> wistringstream;}}
{{tr|typedef <char> basic_ostringstream ostringstream;|typedef basic_ostringstream<char>     ostringstream;}}
{{tr|typedef basic_ostringstream <wchar_t> wostringstream;|typedef basic_ostringstream<wchar_t> wostringstream;}}
{{tr|typedef <char> basic_stringstream 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.
Prdfinis objets de flux standards:
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; d'entre / / standard (stdin)|extern  istream  cin;   //standard input (stdin)}}
{{tr|extern wistream WCIN;|extern wistream wcin;}}
{{tr|extern ostream cout, sortie / / standard (stdout)|extern  ostream  cout;  //standard output (stdout)}}
{{tr|extern wostream wcout;|extern wostream wcout;}}
{{tr|extern ostream cerr; erreur / / standard (stderr)|extern  ostream  cerr;  //standard error (stderr)}}
{{tr|extern wostream wcerr;|extern wostream wcerr;}}
{{tr|sabot ostream externe; 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.

I / O manipulateurs

Le flux des E / S I / O manipulateurs bibliothque utilise (par exemple std::boolalpha, std::hex, etc) afin de contrler la faon dont se comportent les flux .
Original:
The stream-based I/O library uses I / O manipulateurs (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.

Types

Les types suivants auxiliaires sont dfinies:
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>
reprsente par rapport fichier / flux de position (dcalage par rapport FPO), suffisante pour reprsenter toute la taille du fichier
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)
reprsente le nombre de caractres transfrs dans une opration d'E / S ou la taille d'une mmoire tampon d'entre / sortie
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)
reprsente la position absolue dans un flux ou un fichier
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 gnrique)
Quatre spcialisations de std::fpos sont fournis:
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 d'
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>

Interface catgorie d'erreur

Defined in header <ios>
(C++11)
les codes d'erreur IO cours d'eau
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]
identifie la catgorie d'erreur 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.

(fonction) [edit]

C-style IO

C + + inclut galement la d'entre / sortie des fonctions dfinies par C, comme 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.

Web Proxy Viewer  |  New URL  |  Original Page