From 9f640d0ae888be4d3138b2bd2ba44714ad180a1b Mon Sep 17 00:00:00 2001 From: bdejean Date: Sun, 26 Apr 2020 15:36:58 +0200 Subject: [PATCH] More idiomatic C++ Drop endl which is not newline and the return 0 that is implicit. --- c/c++.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/c/c++.cpp b/c/c++.cpp index 241c38e6..5b223321 100755 --- a/c/c++.cpp +++ b/c/c++.cpp @@ -1,9 +1,6 @@ #include -using namespace std; - int main() { - cout << "Hello World" << endl; - return 0; + std::cout << "Hello World\n"; }