C++ iostream

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Start FREE Trial Start FREE Trial

Start FREE Trial Start FREE Trial

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Start FREE Trial Start FREE Trial

Start FREE Trial Start FREE Trial

Python JavaScript TypeScript SQL HTML CSS C C++ Java R Ruby RUST Golang Kotlin Swift C# DSA

Learn

Practice

Compete

Certification Courses

Created with over a decade of experience and thousands of feedback.

Python

JavaScript

TypeScript

SQL

HTML

CSS

C

C++

Java

More languages

Python

JavaScript

C

C++

Java

R

Kotlin

The C++ <iostream> header file declares a set of functions for standard Input/Output. It also defines I/O stream objects such as cin, cout, clog, etc.

C++ cerr

Writes to error stream

C++ cin

accepts input from the user

C++ clog

used for streaming logs

C++ cout

displays output to output device i.e monitor

C++ wcin

accepts input in wide character type

C++ wcout

displays wide characters (Unicode) to screen