📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: 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.
I want to add a note. std::map is implemented like a red-black tree (a type of balanced tree, that's why the "map" is sorted). This means that insert, search and remove are O(log(n)). std::unordered_map is implemented like a hash table (with buckets) and insert, search and remove are amortized O(1). So choose well, because the 2 data structures are really different and have huge difference in performance. Btw great video and thanks for sharing your knowledge to people that are learning c++ ^^
#include #include #include using namespace std; /* After Reading 'MAP in C++', thought about Google Map in C++..finally understand, could not search codebeauty location in this map.. :D */ void fruits(){ map dic; dic.insert(pair("1 kg apple", "die fruits ")); dic.insert(pair("11 kg orange", "living fruits")); dic.insert(pair("7 kg berry", "newborn fruits")); dic.insert(pair("6 kg banna", "unborn fruits")); for (auto p : dic) cout
I was looking for C++ associative arrays like in PHP, and you showed me how - AND, many thanks for the black background from you blind Canadian subscriber..
15:55, yes I confirm that scary face is an attack, an attack that is supposed to scare the opponent with a scary face, this will lower the opponent's speed stat in battle
Thank you for clarifying this! 😁🔥🔥 I also did some research and after seeing Charmander's scary face myself, I was stunned and terrified! 😁 I hereby testify that everything stated in the video and in this comment is correct! 😏😁
Always love ❤❤❤ your videos.. Please make a video of “bit manipulation”... 🙏🙏 I see lots of video of bit manipulation, but can't understand properly. 🙁🙁 So please please one video of bit manipulation.
I love all your videos and now i can comprehend what im doing much better than any of the books ive read. If you could make a video on Vectors i would greatly appreciate it ! Thank you for everything you do!
I gotta say this! When I learned about OOP, I subscribed to this channel and RIGHT NOW! My professor just put the link of this video in this weekreading schedule! Amazing. Thank you so much for the explanation!!!
Your professor is awesome, he really cares about teaching, give him my greetings! 🥰 Most of my professors would just give us a book with a bunch of abstract examples and students had to figure it out on our own. It took 5x more time 🥲
welldone dear saldina😍😍.......i have an order could you solve this question for me...?write a c++ program that calculate the number of (day)s between two date using class??
Its surprising that I was just searching for maps and here we are!!!BTW done with both yours and caleb's 10hr c++.Thanks to you, its becoming easier than I expected.
Thanks a lot Saldina , if we want to translate from string to for example integer or other variables what should we do and I am wondering whether in practical projects are detas from different kind of variables converted on base of this way or not , for example, audio to text or text to image, etc
I was confused by my professor's explanation and videos in RU-vid but eventually found out this one to be very straightforward and easy to learn, thanks a lot!!
I watch your videos and enjoy them very much. please can you make a video of a C++ programming project which covers all or almost all the themes of the C++ language
You are amazing Saldina, this video was very nice. I prefer mostly unordered map over ordered map. And don't feel awkward about your favourite pokemon if you are 26, I'm 27 and my favourite pokemon is Pikachu ❤️ because he is very cute and sometimes very aggressive if he don't like anything
You are no weirdo if I may say... :) My son is 7 years old and crazy of Pokemons and collects the pokemon cards... Actually I am joining and assisting him in that and I am 45 years of age :)
i just learned about c++ containers 2 days ago so this video helps! How is a list different from a normal array? would it work to have a string array as the second data type of the map?
One of the key differences is an array is fixed size versus a list that can grow and shrink in size. List, like other std containers (vector, queue, etc) know their size and have operational functions to get items at position, front, end, iterators, and so forth. When using normal arrays you cannot know the size, unless you use std::array which has some features like std containers, however array is still fixed size. Maps can hold any type of data for their keys and values. If you want the second to be string array, you can do that. Just remember that your string array has to be fixed in size or if you use a container it can grow and shrink over time, so it matters on what you need. You just need to think about what use would that array be for? Because the key gives you access to the array, but now accessing the elements in your string array requires some other search (like iterating and comparing the values).
Bro, I hate the damn ::std. Its literally make the code complex and unreadable when every time is being used in the code std::cout and std::string 😑 and in every part of the code. Instead of looking at the code, your eyes will stuck at the word ::std.
Thanks a lot from your clean codding , clear speaking , and you always brings each and every point from sidelines to TEXT. I 💕💕💕 your Instructions always. but i wish to become a close colleague for you in the area of coding and programming for ever. so please try your best for shifting me from Afghanistan to your Homeland (Boss AND Herz).i want to work with you, i like working with you.
Thanksgiving? Tons of people celebrate this wonderful autumn holiday. But what if you need to finish this damn project? Right, just open the video and you will answer to the question you tried to resolve for weeks. Bravo!
I wrote my own map facilities about 12 years ago before I knew STL has map. I could’ve saved a lot of time if I knew about the built in map features. I learned a few things from your video. Thanks.
tip : if the type is too complicated for readability, such as an iterator or a standard library type, then auto&& will magically bind to anything always.You can use it in for loop.
Thank you for your interest in the topic of Modern C++. However, your code is depreciated. Learn to do: std::map myDictionary = { {"name", "John"}, {"surname", "Doe"}, {"age", "25"} }; for (auto& [id, value] : myDictionary) std::cout
miss how verify a key... (count) C++20 u can write : for (auto const &[key, value] : yourmap) ... I don't understand why c++ insert method is sooooo weird...
code beauty indeed. You're gorgeous! And my favorite pokemon would be salamance most likely. But from gen 1 i think my favorite would be articuno. Its really difficult, gen 1 has so many great pokemon lmao
I'm 30 and still play sometime. Sceptile and Bulbasaur. When I stopped playing at 16:19 I was doing the same laugh. Also, could you add one more video about linked lists of a linked list? Two dimensional list for dictionaries where if user adds "car" it adds it in the other lists from A to Z and sort it. If I remember where this comment is, I'll add my code as well.
Thanks a lot for such an easy and perfect explanations, also with interesting examples!😊 Helps me a lot. We'd also love to have a video on set data structure please 🙂
Using the pokedex example makes the lesson that much more fun.I really don't think scary face is an actual attack, I believe google is wrong, but it might be an attack in the newest versions.
Great video as always! I have a question. Since the declaration of map includes, in your example, string and string why when you do the insert do you have to say string and string again??
If you have a map which uses string as the key and string as the value, the map is able to store objects, and those objects must be a pair containing two strings (pair). When you create that pair, you need to define what data it stores, so by passing string and string to pair when it is created, you specify its type just as you do when creating the map, and as the types stored by the pair match the types accepted by the map, the insert operation will succeed. If you don't want to explicitly create a pair then add it, you can call emplace on the map and pass in the strings, and c++ will create the pair for you -ie. myDictionary.emplace("banana", "die Banane");
Can you please bring course on CORE JAVA+OOP concepts on JAVA please!!I mean full JAVA course from begginers to advance learners. 😭😭😭 You are the best🥰🥰🥰.
Why would you call insert rather than emplace with the two values - ie. myDictionary.emplace("banana", "die Banane"); ? Is there a practical reason, or is it purely coding style?
I briefly remember on some random slide show in my second year uni about the maps. The teacher talked quite fast and I didn't pick it up. But now I kind of got it! Thanks! Oh and my favourite Pokemon. Well what first comes to my mind would be Charmander and it's final form Charizard. Used to have one as a soft toy ^^