Header Reference: <iostream>
Header Reference: <iostream>
Standard stream objects and high-level stream initialization support from <iostream>.
Header Reference: <iostream>
Standard stream objects and high-level stream initialization support from <iostream>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<iostream>std::cinstd::coutstd::cerrstd::clogstd::wcin and std::wcoutUse <iostream> when you need the standard global stream objects for console-style input, output, logging, and diagnostics.
cerr or clog#include <iostream>
int main() {
// Pair stream types with state checks and explicit formatting rules.
return 0;
}