std::ios_base::Init
提供: cppreference.com
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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. |