Course Object Oriented Programming

C++ Libraries

Course's Page 5 min Text by
User Image
Allan Garcia

In this class, we will finally see the libraries (or headers) that we can use in C++.

The Reference

As a guide, we can access the [Standard C++ Library reference] website (https://www.cplusplus.com/reference/), where the libraries available as standard in C++ are listed and documented.

In the menu on the left of the page, we can see some divisions that make navigation through the site easier:

Figure 1

In each category, there are several libraries with ready-made codes related to various functionalities that we can use:

  • The C Library includes the pure C libraries.
  • The Containers includes the libraries that contain already officially implemented data structures.
  • The Input/Output includes the libraries related to reading and writing data.
  • The Multi-threading includes libraries related to the use of multiple threads in programs, which we will not see in this course.
  • Other includes libraries that have other diverse functionalities.

For example, by accessing the documentation, we can see everything that has already been implemented in that particular library, so that we don't have to redo those programs or, as we say, reinvent the wheel.