Pairs in C++. In this video you will learn about pairs in c++. A pair is a collection that holds two values, which can be of the same or different type (heterogenous types). For instance, you can create a pair that holds a string and an int. Pairs are useful if you only need to group two values together as a single unit, which you can then store in another collection such as a vector. In this tutorial, you will learn how to create a pair using the constructor or make_pair function, how to access the first and second element, and how to pack and unpack a pair.

If you need to review these topics:
CMath: https://youtu.be/WmsXJcHCHSs

C++ Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE

Github Repo for C++ Code:
https://github.com/ImKennyYip/cpp

Install C++ with VS Code:
https://youtu.be/DMWD7wfhgNY

Subscribe for more coding tutorials !