Vector In C++

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • JOIN ME
    -----
    CZcams 🎬 / @cppnuts
    Patreon 🚀 / cppnuts
    COMPLETE PLAYLIST
    ------------
    C++ Tutorial For Beginners: • Introduction To C++
    STL (Standard Template Library): • STL In C++
    ThreadIng In C++: • Multithreading In C++
    Data Structures: • Data Structure
    Algorithms: • Binary Search
    Design Patterns: • Factory Design Pattern...
    Smart Pointers: • Smart Pointer In C++
    C++14: • Digit Separator In C++
    C++17: • std string_view in C++...
    C++ All Type Casts: • static_cast In C++
    INTERVIEW PLAYLIST
    ------------
    C++ Interview Q&A: • Structural Padding & P...
    C++ Interview Q&A For Experienced: • How delete[] Knows How...
    Linked List Interview Questions: • Find Kth Node From Bac...
    BST Interview Questions: • Search Element In Bina...
    Array Interview Questions: • Reverse An Array
    String Interview Questions: • Check String Is Palind...
    Bit Manipulation Questions: • Find Set Bit In Intege...
    Binary Tree Interview Question: • Invert Binary Tree
    Sorting Algorithms: • Bubble Sort
    C++ MCQ: • Video
    C MCQ: • What printf returns af...
    C Interview Questions: • Designated Initializat...
    QUICK SHORT VIDEOS
    -------------
    C++ Short : • C++ Short Videos
    C Short : • Shorts C Programming MCQ
    In this video we will learn how what is the use of std vector in cpp programming language and few points are as follows:
    1. std::vector is a sequence container and also known as Dynamic Array or Array List.
    2. Its size can grow and shrink dynamically, and no need to provide size at compile time.
    ELEMENT ACCESS
    at(), [], front(), back(), data()
    MODIFIERS:
    insert(), emplace(), push_back(), emplace_back(), pop_back(), resize(), swap(), erase(), clear()
    #stl #cpp #programming #tutorial #computerscience #softwareengineering

Komentáře • 126

  • @kamal6762
    @kamal6762 Před 4 lety +25

    Very intuitive content has in this video. I suggest/request you to make a series of videos of the Data structure and algorithms step by step.

    • @CppNuts
      @CppNuts  Před 4 lety +11

      Sure man that is my next goal.
      Stay tuned.

    • @parammirani6641
      @parammirani6641 Před 3 lety

      @@CppNuts Yes, looking at these videos now, I hope to see a DSA (Data-Strcutures and Algorithms) series soon
      :)

  • @JD-om6zk
    @JD-om6zk Před 4 lety +25

    There is No scope of improvement 😅because it's allready perfect 🤭🤭🔥🔥💯

    • @CppNuts
      @CppNuts  Před 4 lety +2

      Thanks dude..

    • @Ihavetoreturnsomevideotapes
      @Ihavetoreturnsomevideotapes Před 3 lety

      Simp

    • @JD-om6zk
      @JD-om6zk Před 3 lety +3

      @@Ihavetoreturnsomevideotapes at least its better than your rude dumbass! BITCH!

    • @JD-om6zk
      @JD-om6zk Před 3 lety +2

      It's just the way of showing gratitude for providing all of this valuable content for free

  • @shivamtyagi9936
    @shivamtyagi9936 Před 4 lety +4

    I know all the things explained...😄 then too watched the full vedio...
    U r exceptionally gud man....

    • @CppNuts
      @CppNuts  Před 4 lety

      Thanks it means a lot..

  • @vovagusse
    @vovagusse Před rokem +2

    Indeed, there is a certain stereotype, that indian people make good youtube tutorials on programming, but...
    ...this tutorial is really helpful, dude!
    thank you so much for explaining all that!!!
    as a python user who was kinda forced to switch to C++ (university), this is really a good explaination of the vector class, which is absolutely amazing!!!!!

    • @CppNuts
      @CppNuts  Před rokem +1

      Thanks dude!!

    • @JustATempest
      @JustATempest Před 10 měsíci

      Sometimes the accent can be hard to understand but while this guy has an accent, his enunciation is clean making him easy to understand as well as being a good explainer.

  • @devayanivernekar6494
    @devayanivernekar6494 Před 3 lety +1

    So glad I have stubbled on your channel.. I've watched multiple videos and seen books but you have the best explanations and very intuitive. Thankyou!

    • @CppNuts
      @CppNuts  Před 3 lety

      Thanks man.... much appreciated.

  • @xnehaxixh
    @xnehaxixh Před 3 lety +2

    Damn, the content is very resourceful! It gave me the intro and roadmap from where to begin STL. Everything is made simple to understand. Great content! Please keep it up 👍

  • @maidulislam9040
    @maidulislam9040 Před 3 lety +1

    Man you're too good! Better than my University professors. Thanks a lot!

  • @julurisaiteja8853
    @julurisaiteja8853 Před 4 lety

    Very underrated channel ...thanx man ...hoping for many Gud videos

  • @techdyan8500
    @techdyan8500 Před 3 lety

    ur way of explanation made me to create my own Vector class .. thank you .

  • @dineshbabu2134
    @dineshbabu2134 Před 4 lety

    So far the best video series I have seen on STL.

  • @shivamshrivastava5019
    @shivamshrivastava5019 Před 4 lety +4

    Your videos are expectionally good ...easy to understand and consize too.
    Please make more videos.
    You should make videos on Data structure and Algorithm covering the whole syllabus by a good book.
    People will really appreciate that.
    Humble people like you are very precious to our society.
    Thanks a lot for your efforts.
    *Y O U D E F I N I T E L Y W I L L G R O W*

    • @CppNuts
      @CppNuts  Před 4 lety

      I will try my best, Thanks.

  • @christopherapps6177
    @christopherapps6177 Před 5 lety +8

    Please continue adding more videos ... For lists , sets.. etc.

  • @bell8837
    @bell8837 Před 2 lety +1

    Excellent video, I learned a lot from you. Thank you!

  • @pavittarkumarazad3259
    @pavittarkumarazad3259 Před 4 lety +6

    Now this is what a tutorial looks like ... Awesome dude :)

  • @rajeshg8649
    @rajeshg8649 Před 4 lety +2

    You are actually awesome. Great videos!!! Thank you for all of these... Keep rocking!!!

    • @CppNuts
      @CppNuts  Před 4 lety +1

      Glad you like them!

  • @prathmesh646
    @prathmesh646 Před 4 lety +1

    Your channel is under rated ❤️. You teach great, And working at night time for recording videos is hard

  • @marvii13
    @marvii13 Před 2 lety +1

    what a good and clear explanation, rlly thank you
    I would be so thankful if you add subtitles cuz I struggle a little in catching some words ")

    • @CppNuts
      @CppNuts  Před 2 lety +1

      Thanks man, Default CC is not working?

    • @marvii13
      @marvii13 Před 2 lety

      @@CppNuts it's ok, I understood it from you even the language barrier, thanxs again 😂

  • @ayushiharia8627
    @ayushiharia8627 Před 3 lety +2

    Thank you so much for this video!! Awesome explanation!! 🙌🏻🙌🏻👏👏👏

  • @vaishnavi4354
    @vaishnavi4354 Před 3 lety +1

    Sir content is damn powerful...but if you give example of each function then video content will be on the 7th heaven ...thanks 🙇🙇

    • @CppNuts
      @CppNuts  Před 3 lety

      I will try.. thanks..

  • @samarthtandale9121
    @samarthtandale9121 Před 2 lety +1

    Superb Content Sir! Hats off to You 🙌🙌

  • @Andrei-ds8qv
    @Andrei-ds8qv Před 4 lety

    Those videos are really hight quality, thanks man!

  • @kolluruyashwanth9381
    @kolluruyashwanth9381 Před 4 lety +1

    Thanks sir It had helped me a lot in competitive coding

  • @mayanksingh1425
    @mayanksingh1425 Před 4 lety

    I have watched today your videos and it's really very awesome. You explained very well.

    • @CppNuts
      @CppNuts  Před 4 lety

      Thank you so much 😀

  • @sharmiladevi-gu2br
    @sharmiladevi-gu2br Před rokem

    OMG🤌... your videos are crystal clear, you are a saver. please keep on doing this 💥💫

  • @nemalperera4762
    @nemalperera4762 Před 6 měsíci

    Master of C++

  • @limamougueye9248
    @limamougueye9248 Před 5 lety +4

    thanks dude, that's interesting! using namespace should enable you to avoid to write std every time, i think

    • @CppNuts
      @CppNuts  Před 5 lety +3

      Yes that's true about std. But there is some issue with this and I have a video for this also, why you should not use using namespace std.

    • @dineshs7663
      @dineshs7663 Před 4 lety +1

      @@CppNuts can you paste the link

  • @jayantsharma2669
    @jayantsharma2669 Před 4 lety +1

    great and simple tutorial, easy to understand.
    But you said you will make a seperate video on erase( ), clear( ), resize( ) and insert( ).
    Please make video on that too.

    • @CppNuts
      @CppNuts  Před 4 lety +1

      Great suggestion! but there are others in the list first.

    • @jayantsharma2669
      @jayantsharma2669 Před 4 lety

      @@CppNuts Good things take time 😊

  • @nikhilpandey3486
    @nikhilpandey3486 Před 4 lety +7

    Are your videos enough for C++ STL course or are there some topics you left??

    • @CppNuts
      @CppNuts  Před 4 lety +2

      There is Library section in STL, which i have to cover. And Iterator is also left but mostly people don't need much about Iterator.

  • @eznex5249
    @eznex5249 Před 3 lety

    Thx for the videos very instructive and easy to understand

  • @abhaybajpai9469
    @abhaybajpai9469 Před 4 lety

    Thankyou sir for the great resource in such less time.....

  • @vinayakthorat3838
    @vinayakthorat3838 Před rokem

    So nicely explained 👌🏻

  • @gogulaanandaa7548
    @gogulaanandaa7548 Před 3 lety

    Clear explanation as in before videos

  • @naveenkumarmkNvn
    @naveenkumarmkNvn Před 4 lety +3

    Please make video to explain late binding or run time polymorphism with v-table complete details .
    I read so many blogs and web sites but I didn’t found convincing answers for v-table .
    Thank you in advance

    • @CppNuts
      @CppNuts  Před 4 lety +3

      Yes i also planned so many time but content preparation always took so much time and then i released some other video.
      Actually it take time to think about a good example and the way i should explain, so i never really could make the content ready but soon i will as now i have Christmas holiday.
      This is biggest topic i have left for pretty long time, sorry for that.

  • @anupchavan9768
    @anupchavan9768 Před 3 lety

    Very nicely explained. Keep it up!!

  • @mubashirahmed97
    @mubashirahmed97 Před 2 lety

    Hi, thanks for this brilliantly explained video. Can you please also make a video on how to use vectors with objects performing different functions in detail?
    Thanks in advance.

  • @thebroking399
    @thebroking399 Před 4 lety

    Thanku bro for this because i forget to learn and know this is important i beame to know

  • @cniveditnandakumar4158
    @cniveditnandakumar4158 Před 4 lety +1

    arr[5] fetches the 6th element in the array as indexing starts from 0

  • @ezhilv4358
    @ezhilv4358 Před 10 měsíci

    for vector type,where the memory gets allocated is it in stack or heap?

  • @shaileshdubey3175
    @shaileshdubey3175 Před rokem

    exceptional!!

  • @ramyabommineni7519
    @ramyabommineni7519 Před 4 lety +1

    Very interesting n good content..

  • @beansm152
    @beansm152 Před 3 lety

    can you do an example with calculating one day value-at-risk historical, with data of series of prices that needs to be loaded into vector?

  • @RADITYABCY
    @RADITYABCY Před 3 lety

    Very Informative!!!

  • @teetanrobotics5363
    @teetanrobotics5363 Před 4 lety +2

    Need more STL videos please. ^_^

    • @CppNuts
      @CppNuts  Před 4 lety +1

      Ok i will check the list.
      Thanks..

  • @karthickkumar1380
    @karthickkumar1380 Před 3 lety

    God You;

  • @lavanyaverma3653
    @lavanyaverma3653 Před 4 lety

    Great Resource!

  • @motorvehicles9348
    @motorvehicles9348 Před 2 lety

    Thank you ❤️

    • @CppNuts
      @CppNuts  Před 2 lety +1

      Welcome dude..

    • @motorvehicles9348
      @motorvehicles9348 Před 2 lety

      @@CppNuts can you please upload more videos on competitive programming problems, that is the need of the hour

  • @RiteshYadav-rc1np
    @RiteshYadav-rc1np Před 3 lety

    in vectors i have seen that std::vector is not written ,instead vector arr(n) plzz tell me

  • @gavravdhongadi9824
    @gavravdhongadi9824 Před 4 lety +1

    Please make a video on const

    • @CppNuts
      @CppNuts  Před 4 lety

      Const?

    • @gavravdhongadi9824
      @gavravdhongadi9824 Před 4 lety

      @@CppNuts Const function and what role it plays, I have seen code where it used in function prototype and with pointer.
      Kinda confused when it is used with pointer

  • @piyushkumar-wg8cv
    @piyushkumar-wg8cv Před 4 lety

    What is the difference between insert and emplace

  • @adarshv4389
    @adarshv4389 Před 4 lety

    Using namespace std; is there !!
    So is there a need of std :: in evry line ??

    • @CppNuts
      @CppNuts  Před 4 lety +1

      Sorry kind of habit..

  • @MrRobot-mb6rq
    @MrRobot-mb6rq Před 3 lety

    What is the significance of uniform initialization?

  • @wir3696
    @wir3696 Před rokem

    WHY YOU DIDNT ACTIVATY TRANSLATE IN YOUR CHANNEL BECAUSE IAM FROM INDONESIA

  • @kamalteja843
    @kamalteja843 Před 4 lety +1

    can u name the compiler software sir?

  • @sarthakbharadwaj5576
    @sarthakbharadwaj5576 Před 4 lety +1

    There's no 2x option in ur vdo why???

    • @CppNuts
      @CppNuts  Před 4 lety +2

      I requested CZcams to not to give that. 😁

    • @CppNuts
      @CppNuts  Před 4 lety +3

      Just kidding..
      I don't know why r u experiencing it.

  • @manishpratapsingh3172
    @manishpratapsingh3172 Před 3 lety

    where are other Vector's Operation

  • @perseus1511
    @perseus1511 Před 4 lety +1

    CAN YOU PUT SUBTITLES ? I DONT SPEAK ENGLISH FLUENT, I AM SPANISH

    • @CppNuts
      @CppNuts  Před 4 lety +1

      I would love to put subtitles but it takes so much of time.
      But I think auto generated subtitles are there right.

  • @zeeshanabbasi8171
    @zeeshanabbasi8171 Před 4 lety

    There are too many ads. Please remove some ads.

  • @atharvabaste4455
    @atharvabaste4455 Před 4 lety

    array-linked list comparison

    • @CppNuts
      @CppNuts  Před 4 lety +1

      Correct, very good video..

  • @PowersOfTau
    @PowersOfTau Před 3 lety

    Do u listen to ur videos b4 uploading😂

  • @sumitmohite4908
    @sumitmohite4908 Před 3 lety

    Please share on GitHub profile

  • @uppsmall
    @uppsmall Před 3 lety

    Please man !
    Just use"using namespace std; " !

  • @anonymuslagg3097
    @anonymuslagg3097 Před 2 lety