hpw print in c++ code example Example 1: how to output text in c++ std::cout << " Something "; Example 2: c++ print cout << "hello world"