<p dir="auto"><br />
<p dir="auto"><br />
<p dir="auto">A simple C++ program to display "Hello, World!" on the screen. Since, it's a very simple program, it is often used to illustrate the syntax of a programming language.
<p dir="auto">I recommend to download : Dev C++
<p dir="auto">This application is used to program in C and C++
<p dir="auto">Write down the program down below on a new source file , to do that click on File , New , Source File
<p dir="auto">When you are done with writing the program , press on execute then compile & run , to compile the written code.
<p dir="auto"><br />
<p dir="auto"><br />
<p dir="auto"><strong>INPUT :
<p dir="auto"><br />
<p dir="auto">
<pre><code>#include <iostream><br />
using namespace std;<br />
int main() <br />
{<br />
cout << "Hello, World!";<br />
return 0;<br />
}
<p dir="auto"><br />
<p dir="auto"><strong>OUTPUT :
<p dir="auto">
<pre><code>Hello, World!
<p dir="auto"><br />
<p dir="auto"><strong>Meanings :
<ul>
<li>iostream is a header file for input/output streams
<li> std is an abbreviation of standard. std is the standard namespace. cout, cin and a lot of other things are defined in it
<li> Int is short for "integer." Int is a fundamental type built into the compiler and used to define numeric variables holding whole numbers.
<li>Every C++ program starts from the <code>main() function.
<li>The <code>cout is the standard output stream which prints the "Hello, World!" string on the monitor.
<li>The return 0; is the Exit status" of the program.
<p dir="auto">Comment below for next tutorials recommended !
This brings back old memories. Gonna have to follow to keep an eye on you. lol. Have a good one.
happy to hear that
You ever do any Arduino stuff or Mobile dev?
yes , Arduino and mobile apps