Istvan
asked

Expert
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.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer