The cout
object in C++ is used to display output on the screen. It is part of the <iostream>
library.
#include <iostream>
using namespace std;
int main() {
cout << "Welcome to C++ Output!";
return 0;
}
Welcome to C++ Output!
cout
sends the output to the console.<<
is the stream insertion operator.