#Hello World in C++

<div class="text-success lead">
C++ (pronounced "See plus plus") is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. 
It is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. 
It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C programming language and 
originally named "C with Classes". It was renamed C++ in 1983
</div>

<img src="./cpp.jpg"/>

##G++ Installation

It's possible to install the GNU GCC on-board and use the board itself to compile natively your applications 
instead of a cross compiler on an external PC. To do that type:

<pre class="prettyprint">
~# apt-get update
~# apt-get install g++
</pre>

##Compile and run

Now try if the compiler works using an "Hello world !" source code example:

<pre class="prettyprint">
#include "iostream"
 
using namespace std;
 
int main(int argc, char *argv[]) {
	cout << "Hello world !" << endl;
	return 0;
}
</pre>

Save this code on your board in a file called <b>hello.cc</b> then compile it by typing:

<pre class="prettyprint">
debarm:~# g++ hello.cc -o hello
</pre>

at the end run it by typing:

<pre class="prettyprint">
debarm:~# ./hello
Hello world !
</pre>

##Related links

<ul>
<li><a href="http://en.wikipedia.org/wiki/C%2B%2B">Wikipedia definition of C++</a></li>
<li><a href="http://gcc.gnu.org/onlinedocs/">GCC manual</a></li>
<li><a href="http://en.wikibooks.org/wiki/C++_Programming/Examples/Hello_world">C++ tutorial</a></li>
</ul>

