Vector In C++

Поділитися
Вставка
  • Опубліковано 5 вер 2019
  • JOIN ME
    -----
    UA-cam 🎬 / @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

КОМЕНТАРІ • 126

  • @xnehaxixh
    @xnehaxixh 3 роки тому +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 👍

  • @devayanivernekar6494
    @devayanivernekar6494 3 роки тому +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  3 роки тому

      Thanks man.... much appreciated.

  • @techdyan8500
    @techdyan8500 2 роки тому

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

  • @julurisaiteja8853
    @julurisaiteja8853 4 роки тому

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

  • @kamal6762
    @kamal6762 4 роки тому +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  4 роки тому +11

      Sure man that is my next goal.
      Stay tuned.

    • @parammirani6641
      @parammirani6641 3 роки тому

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

  • @bell8837
    @bell8837 2 роки тому +1

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

  • @rajeshg8649
    @rajeshg8649 4 роки тому +2

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

    • @CppNuts
      @CppNuts  4 роки тому +1

      Glad you like them!

  • @dineshbabu2134
    @dineshbabu2134 4 роки тому

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

  • @JD-om6zk
    @JD-om6zk 4 роки тому +25

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

    • @CppNuts
      @CppNuts  4 роки тому +2

      Thanks dude..

    • @Ihavetoreturnsomevideotapes
      @Ihavetoreturnsomevideotapes 3 роки тому

      Simp

    • @JD-om6zk
      @JD-om6zk 3 роки тому +3

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

    • @JD-om6zk
      @JD-om6zk 3 роки тому +2

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

  • @maidulislam9040
    @maidulislam9040 3 роки тому +1

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

    • @CppNuts
      @CppNuts  3 роки тому

      Happy to help!

  • @shivamtyagi9936
    @shivamtyagi9936 4 роки тому +4

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

    • @CppNuts
      @CppNuts  4 роки тому

      Thanks it means a lot..

  • @Andrei-ds8qv
    @Andrei-ds8qv 4 роки тому

    Those videos are really hight quality, thanks man!

    • @CppNuts
      @CppNuts  4 роки тому

      Glad you think so!

  • @ayushiharia8627
    @ayushiharia8627 3 роки тому +2

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

  • @mayanksingh1425
    @mayanksingh1425 4 роки тому

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

    • @CppNuts
      @CppNuts  4 роки тому

      Thank you so much 😀

  • @eznex5249
    @eznex5249 3 роки тому

    Thx for the videos very instructive and easy to understand

    • @CppNuts
      @CppNuts  3 роки тому

      Glad it was helpful!

  • @prathmesh646
    @prathmesh646 3 роки тому +1

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

  • @vovagusse
    @vovagusse Рік тому +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  Рік тому +1

      Thanks dude!!

    • @JustATempest
      @JustATempest 9 місяців тому

      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.

  • @pavittarkumarazad3259
    @pavittarkumarazad3259 4 роки тому +6

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

    • @CppNuts
      @CppNuts  4 роки тому +1

      Thanks a ton!

  • @shivamshrivastava5019
    @shivamshrivastava5019 4 роки тому +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  4 роки тому

      I will try my best, Thanks.

  • @ezhilv4358
    @ezhilv4358 9 місяців тому

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

  • @shaileshdubey3175
    @shaileshdubey3175 Рік тому

    exceptional!!

  • @anupchavan9768
    @anupchavan9768 3 роки тому

    Very nicely explained. Keep it up!!

  • @mubashirahmed97
    @mubashirahmed97 2 роки тому

    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.

  • @marvii13
    @marvii13 2 роки тому +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  2 роки тому +1

      Thanks man, Default CC is not working?

    • @marvii13
      @marvii13 2 роки тому

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

  • @beansm152
    @beansm152 3 роки тому

    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?

  • @abhaybajpai9469
    @abhaybajpai9469 3 роки тому

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

    • @CppNuts
      @CppNuts  3 роки тому

      Always welcome

  • @thebroking399
    @thebroking399 4 роки тому

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

    • @CppNuts
      @CppNuts  4 роки тому

      It's my pleasure

  • @nemalperera4762
    @nemalperera4762 5 місяців тому

    Master of C++

  • @lavanyaverma3653
    @lavanyaverma3653 4 роки тому

    Great Resource!

    • @CppNuts
      @CppNuts  4 роки тому

      Glad you think so!

  • @samarthtandale9121
    @samarthtandale9121 2 роки тому +1

    Superb Content Sir! Hats off to You 🙌🙌

    • @CppNuts
      @CppNuts  2 роки тому +1

      Thanks man..

  • @vinayakthorat3838
    @vinayakthorat3838 Рік тому

    So nicely explained 👌🏻

    • @CppNuts
      @CppNuts  Рік тому +1

      Glad you liked it

  • @christopherapps6177
    @christopherapps6177 4 роки тому +8

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

  • @RADITYABCY
    @RADITYABCY 3 роки тому

    Very Informative!!!

  • @cniveditnandakumar4158
    @cniveditnandakumar4158 4 роки тому +1

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

  • @limamougueye9248
    @limamougueye9248 4 роки тому +4

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

    • @CppNuts
      @CppNuts  4 роки тому +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 4 роки тому +1

      @@CppNuts can you paste the link

  • @sharmiladevi-gu2br
    @sharmiladevi-gu2br Рік тому

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

  • @kolluruyashwanth9381
    @kolluruyashwanth9381 4 роки тому +1

    Thanks sir It had helped me a lot in competitive coding

    • @CppNuts
      @CppNuts  4 роки тому

      All the best

    • @sharathchandra.d9277
      @sharathchandra.d9277 4 роки тому

      @Yash kolluru bro how did u start competitive programming?

    • @kolluruyashwanth9381
      @kolluruyashwanth9381 4 роки тому +1

      @@sharathchandra.d9277 start with hackerrank platform and refer geek for geeks website

  • @nikhilpandey3486
    @nikhilpandey3486 4 роки тому +7

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

    • @CppNuts
      @CppNuts  4 роки тому +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.

  • @gogulaanandaa7548
    @gogulaanandaa7548 3 роки тому

    Clear explanation as in before videos

  • @naveenkumarmkNvn
    @naveenkumarmkNvn 4 роки тому +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  4 роки тому +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.

  • @ramyabommineni7519
    @ramyabommineni7519 4 роки тому +1

    Very interesting n good content..

  • @jayantsharma2669
    @jayantsharma2669 4 роки тому +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  4 роки тому +1

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

    • @jayantsharma2669
      @jayantsharma2669 4 роки тому

      @@CppNuts Good things take time 😊

  • @karthickkumar1380
    @karthickkumar1380 3 роки тому

    God You;

  • @vaishnavi4354
    @vaishnavi4354 3 роки тому +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  3 роки тому

      I will try.. thanks..

  • @motorvehicles9348
    @motorvehicles9348 2 роки тому

    Thank you ❤️

    • @CppNuts
      @CppNuts  2 роки тому +1

      Welcome dude..

    • @motorvehicles9348
      @motorvehicles9348 2 роки тому

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

  • @piyushkumar-wg8cv
    @piyushkumar-wg8cv 4 роки тому

    What is the difference between insert and emplace

  • @teetanrobotics5363
    @teetanrobotics5363 4 роки тому +2

    Need more STL videos please. ^_^

    • @CppNuts
      @CppNuts  4 роки тому +1

      Ok i will check the list.
      Thanks..

  • @adarshv4389
    @adarshv4389 4 роки тому

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

    • @CppNuts
      @CppNuts  4 роки тому +1

      Sorry kind of habit..

  • @RiteshYadav-rc1np
    @RiteshYadav-rc1np 3 роки тому

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

    • @CppNuts
      @CppNuts  3 роки тому

      Correct!!

    • @nanthanathanonklin1262
      @nanthanathanonklin1262 2 роки тому

      If you add using namespace std; before int main(), then you don’t put std::vector

  • @kamalteja843
    @kamalteja843 4 роки тому +1

    can u name the compiler software sir?

  • @MrRobot-mb6rq
    @MrRobot-mb6rq 3 роки тому

    What is the significance of uniform initialization?

    • @CppNuts
      @CppNuts  3 роки тому +1

      I have a video for that.

    • @MrRobot-mb6rq
      @MrRobot-mb6rq 3 роки тому

      @@CppNuts ok I will check it out

  • @gavravdhongadi9824
    @gavravdhongadi9824 4 роки тому +1

    Please make a video on const

    • @CppNuts
      @CppNuts  4 роки тому

      Const?

    • @gavravdhongadi9824
      @gavravdhongadi9824 4 роки тому

      @@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

  • @wir3696
    @wir3696 Рік тому

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

  • @manishpratapsingh3172
    @manishpratapsingh3172 3 роки тому

    where are other Vector's Operation

  • @sumitmohite4908
    @sumitmohite4908 3 роки тому

    Please share on GitHub profile

  • @sarthakbharadwaj5576
    @sarthakbharadwaj5576 4 роки тому +1

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

    • @CppNuts
      @CppNuts  4 роки тому +2

      I requested UA-cam to not to give that. 😁

    • @CppNuts
      @CppNuts  4 роки тому +3

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

  • @atharvabaste4455
    @atharvabaste4455 4 роки тому

    array-linked list comparison

    • @CppNuts
      @CppNuts  4 роки тому +1

      Correct, very good video..

  • @PowersOfTau
    @PowersOfTau 3 роки тому

    Do u listen to ur videos b4 uploading😂

  • @anonymuslagg3097
    @anonymuslagg3097 2 роки тому

  • @perseus1511
    @perseus1511 4 роки тому +1

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

    • @CppNuts
      @CppNuts  4 роки тому +1

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

  • @uppsmall
    @uppsmall 3 роки тому

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

  • @zeeshanabbasi8171
    @zeeshanabbasi8171 4 роки тому

    There are too many ads. Please remove some ads.