std::cout is the printer object of c++ programming language.
Print an int with std::cout:
int x = 123456789; std::cout << x << std::endl;
Print a std::string with std::cout:
std::string str = "Hello, c++ World!"; std::cout << str << std::endl;
Mon Aug 11 11:18:08 PM UTC 2025