c++ using std cout code example
Example 1: std::cout and cout
//c++
cout and std::cout both are same, but the only difference is that if we
use cout, namespace std must be used in the program or if you are not
using std namespace then you should use std::cout.
Example 2: how to cout in c++
std::cout << "Hello World!" << std::endl; //Or you can do
std::cout << "Hello World!" <<; //Only in some scenarios