c++ how to print text code example
Example 1: how to print in c++
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!"<< endl; // prints "Hello World"
return 0;
}
Example 2: how to output text in c++
std::cout << " Something ";
Example 3: c++ print
cout << "hello world"