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.
C++ is an ISO standard named C++ 98. A new version will succeed in 2009, it will be C++ 09 and its main features are defined.
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 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
- Visual C++ Express
- Qt Creator
- Eclipse
- MingW
- CLang
- Watcom
- C to C++
BCC 5.5. Borland compiler.
- Thinking C++
Libraries
Boost. Open source libraries for C++.
Objective C sites
Objective C is another object oriented version of the C language, simpler than C++.
- GnuStep
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);
}