C Library The C++ library includes the same definitions as the C language library organized in the same structure of header files, with the following differences: Each header file has the same name as the C language version but with a " c " prefix and no extension. For example, the C++ equivalent for the C language header file <stdlib.h> is <cstdlib> . Every element of the library is defined within the std namespace. Nevertheless, for compatibility with C, the traditional header names name.h (like stdlib.h ) are also provided with the same definitions within the global namespace. In the examples provided in this reference, this version is used so that the examples are fully C-compatible, although its use is deprecated in C++.
Reference of the C++ Language Library, with detailed descriptions of its elements and examples on how to use its functions The standard C++ library is a collection of functions, constants, classes, objects and templates that extends the C++ language providing basic functionality to perform several tasks, like classes to interact with the operating system, data containers, manipulators to operate with them and algorithms commonly needed. It can be divided into: C Library The elements of the C language library are also included as a subset of the C++ Standard library. These cover many aspects, from general utility functions and macros to input/output functions and dynamic memory management functions: