C++: Simple text output

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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: