Тёмный

STL vector (Relationship between Static array, Dynamic array and STL vector) with examples 

CodeBeauty
Подписаться 285 тыс.
Просмотров 93 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 196   
@CodeBeauty
@CodeBeauty 2 года назад
📚 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. Code from the video: #include #include using namespace std; void main() { vectornumbers; //numbers.push_back(0); for (int i = 1; i
@ProjectVastness
@ProjectVastness 2 года назад
Thanks for one more video, this remember me good all times when I was learning C more than 25 years ago.
@hilgicamala2520
@hilgicamala2520 2 года назад
saldina thank you so much for this video, your videos are the best
@programmerdev7251
@programmerdev7251 Год назад
good work
@JPEaglesandKatz
@JPEaglesandKatz Год назад
Hope you are doing okay!! Haven't seen you around for a while... Your videos are top notch!! Take care!
@normanhenderson7300
@normanhenderson7300 Год назад
So Code Beauty, after explaining the disadvantages of dynamic and static arrays, under what conditions they are useful in programming?
@dundyd3612
@dundyd3612 2 года назад
very helpful, i finaly understand when to use arrays (Static) and when to use vectors. thanks saldina
@SDot228
@SDot228 2 года назад
Your C++ videos have been a lifesaver. Thanks for making it easy to learn. Any plans to do a video on runtime analysis/optimization?
@heikin5562
@heikin5562 6 месяцев назад
Your way of explaining is so practical and easy to understand. I've learned a lot by watching your lessons everyday. Thank you!
@Right_place
@Right_place Год назад
Hi saldina nurak Madam.. can you make videos on DBMS ( database management system)
@gollygobih6527
@gollygobih6527 2 года назад
I watched all your videos about arrays, dynamic arrays and multidimensional dynamic arrays, so I knew this one is going to be great as well. Thanks Saldina
@CodeBeauty
@CodeBeauty 2 года назад
I'm happy that my videos helped you 😊💜
@clandeszipp4564
@clandeszipp4564 2 года назад
I applied to CS BSc studies today. Wish me luck! 🤞
@elonfc
@elonfc 2 года назад
Same here bro ,did ur colleges start?
@nocopyrightgameplaystockvi231
Best of luck bro.
@l.p.1967
@l.p.1967 2 года назад
amazing explanation, cleared all my doubts as always
@nv9usb381
@nv9usb381 2 года назад
I was waiting for this video, love it!
@nv9usb381
@nv9usb381 2 года назад
I was waiting for this video, love it!
@andrecorrea6957
@andrecorrea6957 2 года назад
I'm starting over from 0 and remembering everything I learned at the computer science university I did here in Brazil. I was away for a long time and I encouraged myself to move on, you are really amazing, you are helping me a lot.
@Pepespizzeria1
@Pepespizzeria1 2 года назад
Very new to coding, just finished your ten hour coding video on c++, found the diagrams extremely useful and the explanation, this video was useful to, thank you
@CodeBeauty
@CodeBeauty 2 года назад
Happy to hear that. Diagrams are a great way to learn programming, they help you to visualize code even when you don't understand the commands. 😊
@ramakrishna4092
@ramakrishna4092 2 года назад
​​@@CodeBeauty hi mam I have learnt programming languages by watching your videos in channel . yesterday I have given an interview almost I felt got a job but the final question was too unexpected by interviewer. she asked me return two 2d array from function without heap . I said we can create a static array and return to the main .she also asked me to implement the code but I didn't get the correct answer . later interviewer told the prototype of returning 2d array is not correctly written . pls mam I am requesting can you do a video on this topic... love from India..
@issahtalent7511
@issahtalent7511 2 года назад
I wish u were into Java too, I love the way u explain concepts into simple and understanding way. Thanks for the videos though, learnt new stuffs😁.
@sumanthnaidu9598
@sumanthnaidu9598 2 года назад
*Please Make more videos from STL. And cover all the containers in STL with it's built-in functions.* *Remaining one's are :- Deque, List in ( sequence Containers ) & Set, Mult-Set, Map, Multi-Map ( Associative Containers ) & Stack, Queue ( Container Adapters ).*
@LucaCanali
@LucaCanali 2 года назад
you are a amazing girl ... each video gives us more knowledge and tips
@MuravaDnevnik
@MuravaDnevnik 2 года назад
Wow
@arduinomega1030
@arduinomega1030 2 года назад
Салдина, ты прямо во время с векторами👍🙂 Салдина, что случилось? На тебе все больше косметики и меньше одежды 🤔
@Lee-qo9do
@Lee-qo9do Год назад
With you dressed like this, I can't concentrate on teaching materials and videos
@KeyT3ch
@KeyT3ch 2 года назад
Treat Gits!
@atlantic_love
@atlantic_love 2 года назад
I bet you have Taddy Dits.
@epic_amvs4095
@epic_amvs4095 2 года назад
Coming from freecodecamp oops lecture your videos are awesome 🙌+ you are looking cute in that outfit ❤
@boonedockjourneyman7979
@boonedockjourneyman7979 2 года назад
Do a full length, serious video on coding interfaces (such as IDEs). What programming “shells” are out there? Advantages and •••. I say shells in quotes because that is the language we used in 1981. Not too sure what the correct words are today. Maybe look at stone age things like VI. That may give you a sense of where things started. I’m sure there are more old guys watching that can recommend things from the pre-fortran world. Fortran and Pascal led to C. Maybe BSD is a better starting point - no offense to the Pre-Fortran guys. In all seriousness, you could do a few minutes on “shells” and teach your generation where they come from.
@cristianomoreira3305
@cristianomoreira3305 2 года назад
Oh.. Saldina, you have the best channel of programming in this world. The BEST, now I'm a python/JS programmer but I watch your videos just because your explaining is perfect! Thanks for this!
@akosyt4540
@akosyt4540 Год назад
Thank you so much Saldina for this amazing tutorial 🥰.I hope you make a video about queue vs stack and their advantages and desadvantegs and which one to use according to the situation.
@kailas813
@kailas813 Год назад
Will you please plan for adding sessions about design pattern concepts? Thanks a lot for your effort and time.
@arshmaanali714
@arshmaanali714 2 года назад
mam plz make video on functions and how call stack works..
@CodeBeauty
@CodeBeauty 2 года назад
it's an i interesting suggestion, thanks 😊
@arshmaanali714
@arshmaanali714 2 года назад
@@CodeBeautyMam Thank you so much😍 for providing great knowledge .You are very kind and humble.
@cipgameg
@cipgameg Год назад
3 months since last post, I am getting worried!
@CodeBeauty
@CodeBeauty Год назад
New videos soon ❤️❤️
@stateofalawites4039
@stateofalawites4039 Год назад
@@CodeBeauty great I have just found your channel Watching c++ oop course now Hope you make some design patterns /clean code content Best wishes
@chadidridi9306
@chadidridi9306 2 года назад
your methods are so easy to understand unlike many youtube contents ! Please would you make some videos about Datastructures and some advances search algorithms using C++.I'm sure you can explain it perfectly!
@teancodes
@teancodes Год назад
How beautyful you are 🤩 Beauty with Brain 🧠
@technicaltechnmofficial2513
Hello Ma'am You make videos on cpp which are great actually ... PLEASE CAN YOU MAKE A VIDEO ON HOW TO CREATE DB APPLICATION USING VISUAL STUDIO FROM A CONSOLE APPLICATION ...
@mr.potato8894
@mr.potato8894 2 года назад
As always coming up with the most helpful videos. As thanks I'll pray you don't gain weight from eating desserts 🍩🧁😂😂
@yeromin_g
@yeromin_g Год назад
Such a lovely and smart young lady! Pure pleasure to watch your videos and learn with your help. Keep going!
@shanmugammayan6966
@shanmugammayan6966 Год назад
Unpopular opinion : Saldina is hot😁😍💥
@christopherrice891
@christopherrice891 2 года назад
I'm subscribed to your RU-vid channel and i have the bell notifications turned on as well. I am very curious if you can give any hints about how soon your next RU-vid video will be out and also can you give any hints about what your next C++ topic is going to be about? You are an awesome teacher, you clearly explain C++ concepts so well i can re-watch your past videos over and over again.
@edgarpapikyan3202
@edgarpapikyan3202 Год назад
I have changed to Dart language. But still watching your videos sometimes. Thank you. 😉
@boonedockjourneyman7979
@boonedockjourneyman7979 2 года назад
You are beautiful. That doesn’t matter. You are great at what you do. I searched for lessons like this. You were the best. Forget your beauty. It will fade.
@shubhamkargaonkar5503
@shubhamkargaonkar5503 2 года назад
You look stunning ❤️😘
@aldunlop4622
@aldunlop4622 2 года назад
Sleaze…
@atlantic_love
@atlantic_love 2 года назад
Go away.
@shubhamkargaonkar5503
@shubhamkargaonkar5503 2 года назад
@@aldunlop4622 Just a compliment... Don't get hyper....I respect her as a teacher she is doing a great job making such videos and help me understand the concept so easily 🙌🙌
@shubhamkargaonkar5503
@shubhamkargaonkar5503 2 года назад
@@atlantic_love Just a compliment... Don't get hyper....I respect her as a teacher she is doing a great job making such videos and help me understand the concept so easily 🙌🙌 You can go away if your sentiments are hurt 🙂
@atlantic_love
@atlantic_love 2 года назад
@@shubhamkargaonkar5503 Just some advice. Sand fleas are annoying, you tend to post inappropriate comments in the wrong places, and it's easy to see what you're doing. Cringe.
@toto_frs620
@toto_frs620 2 года назад
could you make a video on how to make an API rest with c ++? I am looking for an alternative to Spring
@mirahamdan7369
@mirahamdan7369 2 года назад
this is perfect timing i was just hoping to find a vector video by your great channel
@bubblesort8760
@bubblesort8760 Год назад
Thank you very much for your beautiful videos. I wish you made a video about graph data structures.
@lickguitars1276
@lickguitars1276 Год назад
thank you for this content, you made it clear to learn and giving out the pros and cons, a lot of thanks❤❤
@arduinomega1030
@arduinomega1030 2 года назад
Салдина, когда я смотрю твои лекции по С++, то мои глаза постоянно смотрят на твою шикарную грудь, что мешает изучению данной темы. В результате приходится много раз пересматривать😉
@paulkap12
@paulkap12 9 месяцев назад
Among many other youtubers that I tried to get help in my C++ learning, you are really the best one! Thank you!
@irfanmalick5073
@irfanmalick5073 2 года назад
u also make video on python
@nicholaskomsa1777
@nicholaskomsa1777 5 месяцев назад
your C++ coding concepts are dangerous and not modern. try this: std::vector numbers = { 1,2,3,4,5,6,7,8,9,10 }; for (auto& n : numbers) { std::cout
@zoro-i
@zoro-i Год назад
You are a goddess i just love seeing you talking
@CPP_malloc
@CPP_malloc 2 года назад
vectors of course are better, emplace_back is one of its power, to avoid calling a constructor to create a temporary object and then move it. I realize that emplace_back can be implemented in dynamic arrays easily, but productivity is very important. as well I see no performance improvements in using dynamic arrays over vectors, as compilers already inline all vectors class member functions. as well vectors are nothing more than a wrap-around a dynamic array and obtaining a raw pointer of any element is possible. they are contiguous data in memory, which means math operators are applicable to the returned pointer. you have demonstrated all of that in the video. I also prefer using std::array over the old style of [ ], it also has no performance overhead, because it is POD struct, with only the same size of the total elements in the array.
@yogesh124
@yogesh124 Год назад
Can you please arrange your videos one by one with right order in an playlist
@mixedreality8564
@mixedreality8564 2 года назад
Thanks Saldinah
@maheshvelugula8418
@maheshvelugula8418 Год назад
your videos very useful to me , thank you ,keep going
@harry7809
@harry7809 Месяц назад
Θα ηθελα να απολογηθω για το προηγουμενο μου σχολιο. Τελικα δεν ψευδεσαι... αλλα ακομα δεν εισαι για σπιτι
@rgijsbertse
@rgijsbertse 2 года назад
Hi Saldina, I enjoyed your video on STL Vector. However this is the simple version of Vector values. What about a sorting Vector containing Class pointers or structs. This will need a custom sort function to sort on members of the objects. This may be a idea for an extension of this video, or maybe an 'advanced STL Vector' tutorial? I hope you can do something with this idea. Love your videos. Bye, Ron
@adibahbab6859
@adibahbab6859 2 года назад
Nicely explained! ❤️❤️ It'll be better if explain 2D vector as well in this video.
@sanjayramsinghani5725
@sanjayramsinghani5725 2 года назад
I completely love your way of explaining 😍 but now i am struggling with learning git and git hub can you please make tutorial for how to use git and git hub please
@sir_alist
@sir_alist Год назад
github
@md.naimemolla8543
@md.naimemolla8543 2 года назад
Hey Saldina, I coming from freecodeCamp. Ur OOP course was great and ur explanation was beautiful like u.
@CodeBeauty
@CodeBeauty 2 года назад
welcome and thanks 🥰🥰
@cocwtfmoments6029
@cocwtfmoments6029 2 года назад
I want to ask you a question, please tell me sir. Write a program to create a text file called " Student.dat " which includes student's rollno , name and mark entered from the user.
@atlantic_love
@atlantic_love 2 года назад
Get lost, troll. She's a woman.
@pvtdd
@pvtdd Год назад
How come you don't have to do std::vector::size_type and then assign that to a variable to get the size of the vector ?
@JarekAtWork
@JarekAtWork Год назад
I want to say thank you. I watched all the episodes, it was an amazing adventure. I started with the basics, then functions, pointers and then data structures. I think I am ready for object-oriented programming lessons. I must admit that this will be new to me, but with your help, I am sure I will be able to understand this concept.
@katiagalkina4607
@katiagalkina4607 2 года назад
Saldina tysm !👍 17:06 iterator position 1? 🤔
@spanningtree5869
@spanningtree5869 2 года назад
Thank you so much for starting stl series ❤ 🥰
@aufauf1957
@aufauf1957 Год назад
Thank you
@mirazizmirtojiyev7278
@mirazizmirtojiyev7278 Год назад
Thanks for good tutorial.By the way,you are beatiful
@akkhanfacts
@akkhanfacts 2 года назад
You are a software engineer
@harry7809
@harry7809 Месяц назад
Με ξεγελασες ξανα. Δεν ξερω ποιον να εμπιστευτω πλεον
@osamceo
@osamceo Месяц назад
Oh I didn't know that c++ is beautiful 😅
@pkerr1753
@pkerr1753 2 года назад
I love this channel. I learn so much.
@clustersnake
@clustersnake Год назад
Dear lord! C++ was my favorite programming language in college and now I see that exists an auto data type! I need to learn some new things!
@CodeBeauty
@CodeBeauty Год назад
Welcome to my channel, hope you'll enjoy the C++ content :D
@clustersnake
@clustersnake Год назад
@@CodeBeauty Oh! I love your content. I'm Venezuelan and thanks to you I am learning English too 😄
@jacobmiller1255
@jacobmiller1255 2 года назад
Can someone help me solve the following in C++? "Ask the user for 5 integers. Add them up If the sum is greater than 100 output “YOU WIN!!!!” otherwise output “YOU LOSE :(“ NOTE:: you only need 2 variables for this problem!"
@ducloc2003
@ducloc2003 2 года назад
How to focus on learning to code when there is a beautiful teacher like this🧐
Год назад
I miss explaining the difference between [0] and .at(0). [] doesn't check if the value it's valid and .at() does, throwing an exception if it's past the size of the vector.
@anoridinaryhumanbeing70
@anoridinaryhumanbeing70 2 года назад
could you PLEASE let me know why you named your channel as "CodeBeauty" ? Thank you.. Please do let me know..
@nageshnani9609
@nageshnani9609 2 года назад
Hello codeBeauty, how line space will be taken automatically, it's amezing but how?
@SRR-p7i
@SRR-p7i 11 месяцев назад
dear, precise and very clear explanation, easy to understand. the way you explaining etc are excellent, the name codebeauty, is like beautiful like you, and its very rare that both your talent of teaching skills and yourself very lovely and beatiful. Please keep posted.
@s0hni19
@s0hni19 2 года назад
very nice! im interested in the usage of c++ 20 modules. would be nice if we see that soon
@nataliagrace5717
@nataliagrace5717 2 года назад
Hi I'm new to this channel I recently started watching your 10+ C++ Course and I love it so much!! The way your explain everything is perfect for me and it helps me understand a lot. I was wondering what is your accent? It's so pretty but I can't figure it out lol. :)
@technicaltechnmofficial2513
@technicaltechnmofficial2513 2 года назад
Hi ma'am please make a video on "KEYBOARD AUTOMATION" using C++ . Through which i should give an input to another application using C++ program .
@lavtheexplorer9739
@lavtheexplorer9739 Год назад
I want to become alpha zebra 🦓 now more than a coder.
@jones4895
@jones4895 Год назад
i actually covered the bottom left of my screen throughout the video as i am being distracted bcz im a man of culture lol
@johnalvinm
@johnalvinm 2 года назад
Your videos get better every time❤
@Thebiggame-dc8ek
@Thebiggame-dc8ek Год назад
Thanks for the useful subject. I wonder why we can't use it(the iterator) by itself for gaining the address of an element of the vector if it is a pointer. And also why it wasn't defined as a pointer, like: int *it instead of being auto without asterisk. I appreciate if someone gives their comment on it. thanks.
@mihailvrabie7644
@mihailvrabie7644 Год назад
Thanks a lot for good information related to vectors. I have a problem to solve in c++: (Input: 1+ 5 + 3 + 4, Output: 1 + 3 + 4 + 5). The question is : can we solve that with vectors and how? Thanks in advance!
@あい-ueo
@あい-ueo 4 месяца назад
not only the appearance, your way of teaching is beautiful. Thanks a lot!
@indarklove6850
@indarklove6850 2 года назад
thank you! Nice work!
@7amoodbasha934
@7amoodbasha934 2 года назад
Actually your content is the best butI hope so you make a real system to pratice rather than a seprate examples
@joseloeza371
@joseloeza371 Год назад
so beauty and smart.... what I need... Thanks excellent video
@LighterWord
@LighterWord 2 года назад
The only thing i have to say is I LOVE YOU
@c3rk3m4f1a
@c3rk3m4f1a 2 года назад
Odlični videi , počeo sam da učim C ++ pre mesec dana pa nisam skroz savladao pointere nadam se da to nije problem i da ću vrememom naučiti . Veliki pozdrav ❤️
@CodeBeauty
@CodeBeauty 2 года назад
Super, javi kako ide 😀
@wrkrebel
@wrkrebel 2 года назад
learned
@AndrejPodzimek
@AndrejPodzimek 2 года назад
using namespace std; Nope. Starting a coding video with an antipattern is a *bad* idea.
@CodeBeauty
@CodeBeauty 2 года назад
do you know what is namespace std and when is okay to use it to have more readable code, and when it can cause problems?
@AndrejPodzimek
@AndrejPodzimek 2 года назад
@@CodeBeauty Because RU-vid keeps deleting my comments with a detailed explanation, I will have to keep it brief: Yes, I do know what C++ is and why one should *never* “use” a namespace one doesn’t own. Otherwise I wouldn’t comment. But thanks for asking. Back to your question: "using namespace std;" is *never* OK. It is a troublesome antipattern that must be avoided in any context, from a “hello world” to a million-LoC codebase.
@alishafii9141
@alishafii9141 Год назад
hi dear saldina , i am 48 years old and I am beginner , you give me as gift more than gold and diamond, you give me "TIME" and "UNDERSTAND", your tubes reduces time of learning and save it and gains performance of understanding. please continue
@muhammedusman3495
@muhammedusman3495 2 года назад
Amazing! I love your way. Thank you so much for the helpful videos.❤❤(❁´◡`❁)
@Anonymous-wx8kk
@Anonymous-wx8kk 2 года назад
Sista pls can u complete full course of DSA. 🙏Plss huge request from 🇮🇳India. Ur way of teaching is of another level. 🔥❤❤❤❤🥰
@irfanmalick5073
@irfanmalick5073 Год назад
YOU ARE SO PREETY AND BEAUTIFUL AND URS STYLE OF TEACHING IS GORGEOUS
@chesshooligan1282
@chesshooligan1282 2 года назад
What kind of performance gains do you get by using a dynamic array instead of a vector? Why does everybody seem to think de-allocating your memory is such a big deal and prone to bugs? Remembering to put a 'delete' statement after you're done with your array doesn't seem that hard.
@kenzo3477
@kenzo3477 2 года назад
Hi Saldina. Am glad to let you know that you saved my life through easy to comprehend lectures. Thanks so much Madam. Truly, I tell you that your tutorials can make Ben Carson abandon Medicine and be a Software Engineer. Lol. Anyway, just wanted to know,,,, is it in your will to do tutorials on other languages like Javascript or even some web dev frameworks?? If so, am patiently waiting for the publishing of the first video. You amazingly awesome with how you teach us. Thanks so much. 🙏
@olebeh
@olebeh 2 года назад
Hello. Wanted to ask, how do you put semicolon at the end of the line automatically? Formatter doesn't do it
@JarekAtWork
@JarekAtWork Год назад
If the size of an array is unknown or changes during program execution, vector may be more appropriate. Vector is easier to use because it provides automatic memory management, and its methods allow for easy addition and removal of elements. In addition, vector provides many useful functions, such as sorting and searching elements, which greatly facilitate programming in C++. In summary, the decision of whether to use a dynamic array or a vector depends on the specific case and program requirements.
@टिल्लूमर्चेंट
Ma'am please make a video on Python. Love from India.
@hangugsalam6383
@hangugsalam6383 2 года назад
thanks for all videos i am waiting for you to make an video for consts and especially consts in functions!!!!!!!!!!!!!!! it is hard to understand i think
@fidalgoverde
@fidalgoverde Год назад
Excellent.
@asimuddin3222
@asimuddin3222 2 года назад
Thank you . Can you teach us about algorithms please. I hope it will be superb for your content and it will help us too.
Далее
🦊🔥
00:16
Просмотров 308 тыс.
Back To Basics: C++ Containers
31:41
Просмотров 184 тыс.
#01 [STL] - Vector Part 1
18:57
Просмотров 80 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Dynamic Arrays in C++ (std::vector)
14:14
Просмотров 380 тыс.