C++ Pair
Channel:
Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=FfJcYL-wsoM
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.
C++ Playlist:
• C++ Tutorial
Install C++ with VS Code:
• How to set up C++ in Visual Studio Code
Subscribe for more coding tutorials 😄!
Other Videos By Kenny Yip Coding
2025-03-08 | Python Dunder Methods mul vs rmul |
2025-03-07 | Practice Dunder Methods in Python |
2025-03-06 | Python Classes Dunder Methods and Polymorphism |
2025-03-05 | Design a Credit Card Class (Python Object Oriented Programming) |
2025-03-04 | Python Classes, Methods, and Objects |
2025-02-26 | Build a Calculator in Python |
2025-02-21 | C++ String Functions |
2025-02-19 | C++ Tuples |
2025-02-13 | Map in C++ |
2025-01-15 | C++ Typedef and Type Aliases |
2025-01-14 | C++ Pair |
2025-01-13 | Javascript Rock Paper Scissors Minus One #squidgame |
2024-12-23 | Embed YouTube video in HTML |
2024-12-20 | HTML Boiler Plate vscode |
2024-12-19 | Animations in JavaScript games |
2024-12-09 | JavaScript Keyboard Events |
2024-12-04 | C++ Useful Math Functions |
2024-12-02 | Sounds and Music in JavaScript games |
2024-11-25 | Build A Password Generator With JavaScript |
2024-11-06 | Build a Calculator with Javascript |
2024-11-04 | C++ Set, Unordered Set, Multiset |