Two ways to output text from C++ quickly and easily: –

std::cout << "Hello World" << std::endl;
printf("Hello World");

You’ll find a good overview of the differences here if you’re interested

 

Advertisements