C++ Tuples
Tuples C++. In this video you will learn about tuples in c++. A tuple is a collection that holds multiple values, which can be of different types (heterogenous types). For instance, you can create a tuple that holds two strings and an int. In this tutorial, you will learn how to create a tuple using the constructor or make_tuple function, how to access and update a value using the get function with the index or type, how to pack and unpack a tuple, and use the ignore key word. Tuples are very similar to pairs, except they are not limited to two values.
If you need to review these topics:
Pairs: • C++ 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-11 | Python Duck Typing |
2025-03-10 | Python Class Variables |
2025-03-09 | Sorting Classes in Python |
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 |