|
C/C++ Help Pages |
|||||
|---|---|---|---|---|---|
| Using C/C++ | gcc and g++ manual page | ANSI C | Programming in C: a tutorial | ANSI C rationale | The C++ resources network |
C is programming language designed by Dennis Ritchie at AT&T Bell Labs ca. 1972 for systems programming on the PDP-11 and immediately used to reimplement Unix.
It was called ‘C’ because many features derived from an earlier compiler named ‘B’.
Partly due to its distribution with Unix, C became immensely popular outside Bell Labs after about 1980 and is now the dominant language in systems and microcomputer applications programming.
It has grown popular due to its simplicity, efficiency, and flexibility.
C programs are often easily adapted to new environments.
C++ is one of the most used object-oriented languages, a superset of C developed primarily by Bjarne Stroustrup at AT&T Bell Laboratories in 1986.
In C++ a class is a user-defined type, syntactically a struct with member functions.
Constructors and destructors are member functions called to create or destroy instances.
A friend is a nonmember function that is allowed to access the private portion of a class. C++ allows implicit type conversion, function inlining, overloading of operators and function names, and default function arguments. It has streams for I/O and references.