C++ List (Real examples, Sorting a list, When (not) to use List, Detailed explanation, Step-by-Step)
CodeBeauty CodeBeauty
275K subscribers
9,664 views
0

 Published On Premiered Mar 6, 2024

In this video, we are learning what are STL containers. I will teach you how to use lists in C++ with practical example. We will start with the basics of C++ lists and we will gradually move to more complex practical examples. You will learn how to create a matchmaking system that is used in many popular video games like PUBG, Warzone, Fortnite, and for that, we will use STL lists and iterators. I will also teach you the difference between lists and arrays (vectors). As part of this comparison, we will go through the main pros and cons of lists and vectors.
This video will help you understand the purpose of lists in C++, and in upcoming videos, we will cover the rest of the STL containers.

Additionally, if you want to gain more practical experience in building real apps and solving real problems, join my Practical Programming Course below.

🚀📈💻🔥 My Practical Programming Course: https://www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook

☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. ❤️😇
Use the link to make a contribution: https://bit.ly/CodeBeauty_BuyMeACoffee

Related videos:
My Practical Programming Course (Introduction) -    • Learn to Code and Earn Money 💸 in Jus...  
C++ Linked list (custom implementation) -    • Introduction to Linked Lists, Arrays ...  
C++ Vector -    • STL vector (Relationship between Stat...  
C++ Arrays -    • DATA STRUCTURES - How to work with ar...  
C++ STL Introduction -    • C++ STL Introduction (for beginners) ...  
C++ Templates -    • STL Templates in C++ - Generic Functi...  

CONTENTS:
00:00 - What are STL Containers?
04:11 - How to use lists in C++?
05:03 - How to add elements to the list?
06:20 - How to print list elements?
10:00 - How to delete elements from the list?
11:22 - Using a list to build a game
12:35 - Creating a matchmaking system
19:42 - Passing elements by value VS passing elements by reference
21:18 - How to use const when passing elements by reference
24:01 - How to sort data in the list
29:01 - Pros and cons of the list
31:59 - Example of vectors in C++
34:00 - Lists vs vectors
34:18 - Conclusion

Add me on:
Instagram 📸 -   / truecodebeauty  
Twitter 🐦-   / truecodebeauty  

show more

Share/Embed