cout include c++ code example
Example 1: how to cout in c++
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios
Example 2: c++ output
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Example 3: c++ cout int
#include <iostream>
std::cout << "Hello, World!" << std::endl;