cout console 1

cout console

//std::cout -> Write in the console
std::cout<<" Your text here "< Add a line break
//This work :
int a = 23;
std::cout << a ;
//The console will write '23'

Here is what the above code is Doing:
1. We're including the iostream library.
2. We're using the std namespace.
3. We're using the cout object to print the text "Hello World!" to the console.
4. We're using the endl object to add a line break.

Similar Posts