Hello world ! in C++

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...)

Hello world example

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.

G++ Installation

To install the GCC compiler type:

debarm:~# apt-get update
debarm:~# apt-get install g++

Compile & run

debarm:~# g++ hello.cc -o hello
debarm:~# ./hello
Hello world !
 
tutorial/cpp.txt · Last modified: 2010/01/15 21:50 by tanzox
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki