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. (read all...)
This is the “Hello world !” source code example.
#include <iostream> using namespace std; int main(int argc, char *argv[]) { cout << "Hello world !" << endl; return 0; }
Save it with in hello.cc file then install the G++ compiler.
To install the GCC compiler type:
debarm:~# apt-get update debarm:~# apt-get install g++
debarm:~# g++ hello.cc -o hello debarm:~# ./hello Hello world !