MENU

Fun & Interesting

C++ List (Real examples, Sorting a list, When (not) to use List, Detailed explanation, Step-by-Step)

CodeBeauty 24,649 1 year ago
Video Not Working? Fix It Now

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 Related videos: My Practical Programming Course (Introduction) - https://www.youtube.com/watch?v=1DMvoapl4g8&ab C++ Linked list (custom implementation) - https://youtu.be/HKfj0l7ndbc C++ Vector - https://youtu.be/VNb3VLIu1PA C++ Arrays - https://youtu.be/T76E09hnEuo C++ STL Introduction - https://www.youtube.com/watch?v=_NlRcT5gWpo C++ Templates - https://www.youtube.com/watch?v=-Svq5IYPWbc&t 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 📸 - https://www.instagram.com/TrueCodeBeauty Twitter 🐦- https://twitter.com/TrueCodeBeauty

Comment