Home
Programming
AspectJ   Basic   C   C++   C#   Eiffel   Java   JavaScript   Pascal   PHP   Python   Rexx   Ruby   Scriptol   Tcl
Markup
HTML   XML   XAML   XUL
Query
SQL

C++ For system programming

C++, created in 1981 by Bjarne Stroutstup, adds object features to C, while remaining compatible with it.
The goal of C++ goals was to be portable.

Features

C++ describes classes into header files, and body of methods into source files. By declaring instances of classes you can reuses set of variables and methods without to define them again.
Memory management is unchanged.
Overloading allows to declare a method with different parameters.
Classes inherits one from other and share their methods.

Why to use C++?

I think that C++ it will be replaced by C# in the near future. It remains the best tool for system programming.

Sites and tools

Libraries

Objective C sites

Objective C is another object oriented version of the C language, simpler than C++.

Sample code

Merging and displaying lists

string s = "demo" + "trail";
int l = s.length();
for(int i = 0; i < l; i++)
{
   char c = s[i];
   printf("%c\n", c);
} 
Home