Istvan Kocsis
last year
Istvancountry asked

What does #include <iostream> mean in C++?

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi Istvan,

#include adds the iostream library so your C++ program can do input and output, like printing to the screen and reading from the keyboard.

It lets you use things like cout and cin, for example:

#include 
using namespace std;

int main() {
    cout << "Hello";
    return 0;
}

If you have more questions, I am here to help 😊

C++
This question was asked as part of the Learn C++ Basics course.