C++ POINTERS (2020) - What is a dynamic two-dimensional array? (MULTIDIMENSIONAL dynamic arrays)
Vložit
- čas přidán 22. 07. 2024
- In simple words, a two-dimensional array is an array of arrays. In this video, I'm explaining pointer use in multidimensional dynamic arrays.
Watch my first video about dynamic arrays before this one: • C++ POINTERS (2020) - ...
📚 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.
Download Visual Assist here: bit.ly/WT-CB
I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
Download Ultra Edit here: bit.ly/UE-CB
It is a powerful, secure text editor designed specifically for programmers.
☕ 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. You can use the link below to make a contribution: bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇
Follow me on other platforms:
Instagram 📸 - / truecodebeauty
Twitter 🐦- / truecodebeauty - Věda a technologie
📚 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.
@CodeBeauty
Is it possible to create a 2d dynamic array without know the number of columns before hand?
I'm a Korean and have been purchasing other contents of book and videos, but they are almost all rubbish not worth of even 1 cent. I can not understand what rubbish they are saying! Now, I've come to fully understand what pointers and dynamic memory assignment are at once after watching these videos. Your contents are worth of much value and time effort!! I sincerely respect you.
This is so inspiring!!
I feel this too !
Thank you so much! I'm happy that I can help and do something meaningful! 🥰🥰
Same feeling
Lots of respect to your knowledge and the way of presentation
One of the most intuitive explanation on the dynamic 2d array I've ever seen. Thank you!
Undoubtedly this is the best explanation of "dynamic two-dimensional array" I've ever seen.
You have the talent at explaining complicated programming concepts and help me visualize them and finally understand them. So, I need to tell you.. you should never stop teaching. Thank you very much.
I'm a CS student and i can say that you clearly have the best explanation of all videos i have already watched. Completely understood.
Thank you so much. Keep up the great content please :D
When you cut those pointers at 5:07 , it just clicked something and I got everything that I wanted from this video. Loved it❤️❤️❤️❤️❤️❤️❤️
Thank you. This video was helpful from beginning to end. You are my favorite teacher. I love the way you teach. You don't over-complicate and make learning fun and approachable. I just get a very nice vibe from you and I truly appreciate your work. I'll do my part where I can to support such talent and vigor.
I have the midterm exam 2 days later and I've been trying to figure it out for 2 weeks; finally, I understood thanks to you
Got confused reading this from my textbook, your video broke it down so it was much easier to understand. Thanks!
This is the most amazing explanation of this concept I've ever seen. Thank you so much!
Thank you so much for this video. I've been creating dynamic multi-dimensional arrays for hash tables without really understanding why I use double pointers, and for that reason I've been unallocating the memory incorrectly too! Your explanation is very clear and easy to understand, and I love how you used the spreadsheet to demonstrate the concept. It filled a large piece of missing knowledge for me!
🤗🥰
finally, I got the most awesome explanation of dynamic 2d arrays available on youtube. I was really struggling with this topic and surprisingly this is the first time I got your video in recommendations.
The way you explained the stack diagram is really awesome.
Ma'am just one request can you make a series of stl along with some cp questions.
Love from INDIA in these tough times
You really are helping the growing programmers like me, I have been watching your videos and they are very helpful to me, because I learn a lot from them, please keep up doing what is good to humanity, you will be rewarded by the Almighty God.
Very helpful content. Please know that people like me recognize the effort you are putting in and appreciate the trouble you are going through to explain these concepts. I have seen many other videos, but have found yours to be hitting all the necessary points i.e., a) mechanism and sequence of allocation, b) visualization of the allocation process c) sequence and importance of the delete operation -
I'm watching this video again (probably the fifth time) because I just completed a Python then a Java course, and now I need a C++ refresher! Thanks!
This video a life saver indeed. i have watched all 6 videos on pointers in your pointers playlist. in a word it was incredible. Thanks a lot for the amazing contents. wishing you the best.
Superb clarification, God bless you and may the force be with you!
lucky to watch it at the right time when i was stack from the textbook.honestly, it's well explained .
This was exactly what I was looking for. The explanation is fantastic, it is clear and I could understand everything at the first time watching. Thank you very much!
Introduce the problem first and then introduce the solution for it. I like your this approach from the beginning of the c++ videos. Really appreciate your efforts :)
Thank you! This was an extremely difficult subject for me, but you have clarified it so clearly!
Very clear I love the way you explain things you explain and...repeat!
EXCELLENT!!!!FINALY,SOMEONE WHO KNOWS ENGLISH,AND COMPUTER SCIENCE!!!!CONGRADULATIONS!!!KEEP UP,THE GREAT JOB,YOU DO!!!!!
You are the very BEST at explaining these topics. Unbelievable. Thank you so much.
hey, dropping here to say thankyou for the c++ videos, its helping!!
Perfect explanation of C++ dynamic two-dimensional array operations. Thank you!
Very well explained. First time I got to understand this well. thanks and keep making programming easier to learn.
🚀✨️🥰
You’re amazing. You make topics that are usually difficult to understand easily understandable. I wish you were a professor at my college, and I’m seriously thankful you decided to share your knowledge (especially for free). I don’t know what I’d do without you. You’re the only CZcams channel whose ads I don’t skip.
Thank you so much for your kind words! I'm truly glad that my videos have helped you and made difficult topics more understandable. 🥰❤️🔥
This is such a great explanation! Thank you for showing a clear visual representation of a difficult to grasp concept.
Thanks for these tutorials they are very helpful! Keep up the great content!
Thanks I finally understand, instead of creating pointers for each row , you create a pointer that point to a pointer that you add bytes of memory into it, so it skip the part that you need to create pointers for each row, thanks alot!
Thank you so much! I have struggling with the pointers problem for really long time
Thank you for everything. You and brocode taught me how to code better than my college teachers. Thanks!
I love this lady so much. She has taught me more than my professors (;-;). Thank you so much!
I was stumped on an assignment due to the double pointers operator stuff, and thanks to your video I realized it was actually a multidimensional array.
Videos on these kinda topics are not common on CZcams. But with this explanation, this video is epic
best explanation on multidimensional array with pointers, I am currently struggling with this topic. The used of the excell table at the beginning of the video oreally helps clarify the idea better.
thank you so much Saldina! You save my life. Keep up the great content!
☺️💕
Thanks a lot ma'am u don't know how much u helped me in my backtrack and graph algo.i was stuck in the dynamic allocation
You are one old best teachers I know so far.
Thanks a great deal. Finally resolved the problem with my code.
The best explanation that I've seen so far!
This video worth much more than 7K views...
Thank you so much! I'm glad that you think so! 🙏💙
omg you just single handedly rescued my finals thx
I'm happy to hear that 🥰
Great job in boiling down complex concept :) I am a programmer myself but need to teach it to my sibling for her upcoming University exam.
At firt I just wanted to add a little comment and then it appened what you can read below:
Thanks for all.
I lerned a lot with you. The most about arrays and vegetables 😉.
As a lot of your followers I really like the way you teach with the the well accent you get, the great moves you do (sometimes I can see directly the memory spaces on the top of you finger when it's describing it) and the simple but powerfull way you use interfaces you use to show it (VS, excel sheet, ...).
And I'm agree with you that knowing many programing languages is logical when beeing a developer. And learning a new one can help to understand an other already know but not 100% understood.
And know I have an important question for me: how to deal with the differents methodologies we have today for developing? Every job's offers say that we should know "developing on an agile environment" but I read many about srum and I used unitary tests but they doesn't fill well my need. Because they doesn't give me a good way to structure my program, my classes. Yes for me using Test Driven Development or/and Scrum looks like not enought and will finally lead the structure of the program falling to bullshit.
So I searched and found DDD for Domain Driven Design. And this methodology gave me my missing tool. But nobody know it and nobody use it. 🤣
So I would say the best methodology sould be using an agil method like Srum with DDD and checked with unit tests. But it could be nice having your point of vue on this topic.
I've looked this tutorial for DDD:
openclassrooms.com/en/courses/6121861-apply-a-domain-driven-design-approach-to-development/6353721-adapt-your-diagram-to-changing-client-needs
And then I have read this book: DDDvitefait.pdf (because I'm a french speaker and I didn't found an other synthetic tutorial in english on this topic).
Again thanks for your passion 👍
your explanation is very very very clear and simple ......i hope you make a database course with SQL
That explanation using Excel was simply a beauty. CodeBeauty.
thank you so much for this video! Thanks to you, I finally understand multidimensional arrays
I'm glad to hear that ❤️
Beautifully explained!! Gratias :)
What a magnificent and beautiful multidimensional array!
this is so clear thks. without enthousiastic explanations it would be hard for me to learn this.
Hi.
Thanks for all the great cpp tutorials. I would be very happy if you will get into the cpp networking topics.
Crystal clear explanation mam🤩
Love from INDIA
Excellent !!!! Congratulation you are really a Great Teacher !!!!!
Thank you for the wonderful explanation.
thank you for helping me get rid of the pointers fear :")
Content and the the way u explain is fantastic
This makes so much sense now! Thank you
Great video! Thinks for explaining in simple terms what a two dimensional array is, and then how to properly create one.
☺️🤗
You made it so easy to understand
Thanks
I'm very excited for the awesome algorithm of codding your utilizing in your tutorial
Your explanation was better than my professor's
Thank you so much for the clear explanation. your visualization is what made me understand the concept.
I know that it is a pretty complex topic to understand, so I tried to make it as simple as possible. It is awesome that visual examples help! 😊
Pretty rad how you can explain these concepts.
best explanation ever on this topic
Your style of teaching is very Awesome 🥳 Thankyou Thankyou Thank you so much Mam 🥰
Crystal clear explanation,loved it ❤
❤️❤️
very helpful, thank you very much . I have a question , why when I made cin and cout -in the same example-for rows and cols can't enter value in the array indices
Thank you my teacher. You are best
Thank you this is the best explanation of dynamic dimensional array 👏👏👏
I'm happy to hear that you like it 🥰
just beautiful code explanation and tutor
unbelievably good explanation.
Thank U So much All of your videos are so helpful. I have learned c++ from your videos.
🤗🥰
This is very helpful!!! THANK YOU VERY MUCH!!!
claver teaching .....thank you very much!!!
Hi thanks for the video. Really helpful , may I ask a question ? I'm trying to pass this 2d dynamic from function using return command. How should I store it when I call the function?
Wonderful! Thx for all playlists and videos.
☺️🤗
Most beautiful explanation I have ever seen. You explained everything in a simple and understandable way that win my heart for you. Thank you!
Very helpful. Thank you very much!
Amazing explanation thanks you so much
Thank you so much. it is clear
Thank you a lot, I really need to learn how to clean double pointer array. C :
Hi can you tell how to fix line 15 at the end of your tutorial. Seems like the green underline came around minute 15 and 30 sec.
I just have an exercise about this! I have to make a vector like class without using vector library and working instead with a Dynamic Array. Thanks so much for this!
That is a very common assignment for students and a very good one. Hope that the video will help. 😊
And if you want to take it a step further, and really make something to impress, you can use the video about generics that I published a few hours ago and make a more advanced vector-like collection
vector, vector, vector 🤓
Great explanation.. i always wondering why i cant acces the value of matrix with only *ptr
Your video was awesome, your way of explaining is very nice . Could you please make videos on design patterns in c++.
Saldina is there a true need to use dynamic memory like this in C++ by using vector instead? If there is a good case to use dynamic memory vs vector, which is dynamic memory but cleans up after itself, I would love to hear. Thank you in advance. Thank you for your great tutorials!
Thank you. This was an excellent lesson. I got it
Your explanation is the best I found out on yt
Thanks. The topic is pretty hard to understand, so I used visual examples to help with that, and it's pretty normal to watch the video once, and then to watch it again in a day or two, or to watch it a few times, so that you remember everything. 😊
Finally I get a great video on this topic....you explained really well ❤️
🤗🥰🥰
Ma'am your explanation is awesome 👌👌
Hello :) how would you set the pointer for table[1][2]?
thanks for all the awesome videos!
can i utilize this to create a list of cstrings? I'm trying to do a project where I store multiple words as if it were a string array, but the class I'm in forbids the use of so we're forced to use instead..
This is one of the best
I can not say thank enough for this video !!
You're welcome ☺️
Thank You, you only took 17 min for this while our teacher tried it for 2 hours 😮💨
many thanks- big help
I use the same code as you do...
why do I get a bug on line 15 at table[1][2] = 88;
it say 0xC0000005: Access violation writing location
and I can drop down an arrow to tell visual studio where to keep continue...
In my code I can see a message saying...
c6386 buffer overrun while writing to table.
the excel explanation is brilliant