From d23a76fa4a8427efa689e8a522853961c1300d91 Mon Sep 17 00:00:00 2001 From: aryanaces <43854758+aryanaces@users.noreply.github.com> Date: Thu, 4 Oct 2018 22:37:37 +0530 Subject: [PATCH] updated the entire code Changed the code to an output text which I believe will make the user understand the syntax of outputting better . Along with a comment to explain the use cout<<""; --- Hello World/src/First output.cpp | 12 ++++++++++++ Hello World/src/Hello World.cpp | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 Hello World/src/First output.cpp delete mode 100644 Hello World/src/Hello World.cpp diff --git a/Hello World/src/First output.cpp b/Hello World/src/First output.cpp new file mode 100644 index 0000000..9bbc0a9 --- /dev/null +++ b/Hello World/src/First output.cpp @@ -0,0 +1,12 @@ +// First Output +// A basic program to familiarize with the basic syntax of C++ programming + +#include + +using namespace std; + +int main() { + cout << "The text that you need to display as an output (on the screen)" << endl; // cout<<""; is used for outputing a string/text. + + return 0;// the ' ; ' marks the end of the line / line of code. +} diff --git a/Hello World/src/Hello World.cpp b/Hello World/src/Hello World.cpp deleted file mode 100644 index 44105bd..0000000 --- a/Hello World/src/Hello World.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// Hello world -// A basic program - -#include - -using namespace std; - -int main() { - cout << "Hello world" << endl; - - return 0; -}