@@ -257,11 +257,26 @@ The most commonly used headers in the standard library:
257257
258258** C++ Standard Library:**
259259
260- ![ standardlibrarycpp] ( /images/cppstd.png )
260+ | Header | Description | Contains |
261+ | ------------------| -----------------------------| -----------------------------------------------------------|
262+ | `` <iostream> `` | Console input/output | `` std::cin `` / `` std::cout `` |
263+ | `` <fstream> `` | File input/output | `` std::fstream `` / `` std::ifstream `` / `` std::ofstream `` |
264+ | `` <string> `` | String container | `` std::string `` / `` std::to_string `` |
265+ | `` <vector> `` | Dynamic array container | `` std::vector `` |
266+ | `` <memory> `` | Smart pointers | `` std::unique_ptr `` / `` std::shared_ptr `` |
267+ | `` <utility> `` | Utility components | `` std::move `` / `` std::swap `` / `` std::pair `` |
261268
262269** Plain C Standard Library:**
263270
264- ![ standardlibraryc] ( /images/cstd.png )
271+ | Header | Description | Contains |
272+ | ------------------| -----------------------------| -----------------------------------------------------------|
273+ | `` <stdlib.h> `` | General system utilities | `` malloc `` / `` free `` / `` exit `` |
274+ | `` <stdio.h> `` | General input/output | `` printf `` / `` scanf `` / `` fopen `` / `` fclose `` |
275+ | `` <stdint.h> `` | Fixed width integer types | `` int64_t `` / `` uint64_t `` |
276+ | `` <string.h> `` | String and memory utils | `` strcpy `` / `` strlen `` / `` memcpy `` |
277+ | `` <stdbool.h> `` | Access to the bool type | `` bool `` / `` true `` / `` false `` |
278+ | `` <stddef.h> `` | Several common definitions | `` size_t `` / `` offsetof `` |
279+ | `` <math.h> `` | Math utility functions | `` sin `` / `` cos `` / `` sqrt `` / `` pow `` |
265280
266281If you are like me and you write C++ is a very plain C kind of way and want access to `` malloc `` and `` free ``
267282and other stuff from the plain C standard library. You could just include `` <stdlib.h> `` and it will work,
0 commit comments