More idiomatic C++

Drop endl which is not newline and the return 0 that is implicit.
This commit is contained in:
bdejean
2020-04-26 15:36:58 +02:00
committed by GitHub
parent b27ddf35d7
commit 9f640d0ae8

View File

@@ -1,9 +1,6 @@
#include <iostream> #include <iostream>
using namespace std;
int main() int main()
{ {
cout << "Hello World" << endl; std::cout << "Hello World\n";
return 0;
} }