std::ios_base::Init
来自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. |
| class Init; |
||
这个类是用来确保默认的C + +流(std::cin,std::cout等)正确的初始化和销毁。类跟踪多少个实例,它的创建和初始化C + +流的第一个实例时,构造以及刷新输出流的最后一个实例被销毁时.
Original:
This class is used to ensure that the default C++ streams (std::cin, std::cout, etc.) are properly initialized and destructed. The class tracks how many instances of it are created and initializes the C++ streams when the first instance is constructed as well as flushes the output streams when the last instance is destructed.
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.
[编辑] 成员函数
| (constructor) |
if *this is the first instance created, initializes the default C++ streams (公共成员函数) |
| (destructor) |
if *this is the last instance created, flushes the default C++ streams (公共成员函数) |
[编辑] 另请参阅
| 从标准C输入流中读取stdin
(全局对象) Original: reads from the standard C input stream stdin (全局对象) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 写入标准C的输出流stdout
(全局对象)的 Original: writes to the standard C output stream stdout (全局对象) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 写入标准的C错误流stderr,unbuffered
(全局对象) Original: writes to the standard C error stream stderr, unbuffered (全局对象) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 写入标准的C错误流stderr
(全局对象) Original: writes to the standard C error stream stderr (全局对象) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |