Logo

Programming-Idioms

History of Idiom 1 > diff from v86 to v87

Edit summary for version 87 by hans:
[C++] With \n instead of endl, the output would be the same, but may not appear in real time.

Version 86

2019-12-08, 19:09:32

Version 87

2020-04-29, 09:35:36

Idiom #1 Print Hello World

Print a literal string on standard output

Idiom #1 Print Hello World

Print a literal string on standard output

Imports
#include <iostream>
Imports
#include <iostream>
Code
std::cout << "Hello World\n";
Code
std::cout << "Hello World" << std::endl;
Doc URL
https://en.cppreference.com/w/cpp/io/manip/endl