C++ Programming Tutorial 50 - Intro to Vectors

Sdílet
Vložit
  • čas přidán 17. 03. 2019
  • Start your software dev career - calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
    🐍 Python Course - calcur.tech/python-courses
    ✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/newsletter
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/subscribe
    👨🏻‍🎓 Courses - www.codebreakthrough.com
    ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
    ↪ My Amazon Store - www.amazon.com/shop/calebcurry
    🅿 Patreon - calcur.tech/patreon-calebcurry
    🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
    Ⓟ Paypal - paypal.me/calcur
    🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
    🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
    📈 Buy Bitcoin - calcur.tech/crypto
    Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto
  • Věda a technologie

Komentáře • 79

  • @aidantilgner
    @aidantilgner Před 2 lety +44

    1:14 it's apparently called a vector because Alex Stepanov, the designer of the Standard Template Library, was looking for a name to distinguish it from built-in arrays. He admits now that he made a mistake, because mathematics already uses the term 'vector' for a fixed-length sequence of numbers. But that's basically the reason why.

  • @josephwatson4292
    @josephwatson4292 Před 4 lety +23

    Thank you for explaining this in the best way I’ve seen so far.

  • @polskiobywatel553
    @polskiobywatel553 Před 3 lety +10

    Vector = Array 2.0

  • @AndresChGz
    @AndresChGz Před 3 lety +16

    Great lecture well explained Caleb! Thanks a lot.

  • @Two_Wheel_Yeehaw
    @Two_Wheel_Yeehaw Před 2 lety +2

    you're my go to C++ guy! keep it up man! we all appreciate you

  • @Theorythm22
    @Theorythm22 Před rokem +2

    Currently learning c++ right now and this is beautiful explained. Thank you!

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

    Caleb, you are amazing. Thx.

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

    This is just amazing....imma share it now.. Well done bro🤟🤟

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

    Thanks for this, you helped me get a bit ahead for my c++ class.

  • @mohamedyahya9549
    @mohamedyahya9549 Před 2 lety +2

    easy and simple, thank u very much sir

  • @fillpattanamontri8698
    @fillpattanamontri8698 Před 2 lety

    You're such a caleb and we love you caleb.

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

    vectoritems={1,2,1,2};

  • @VishiVish01
    @VishiVish01 Před 2 lety

    Doing a great job bud. Keep it up 👍

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

    great video!

  • @DecentProgrammer
    @DecentProgrammer Před 2 lety

    Best CZcams channel for programming.

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

    It helps understand how it works a lot, thanks ;)

  • @negai_
    @negai_ Před 10 měsíci +1

    THANK GODNESS, A GREATE EXPLANATION!!

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

    Thank you this was very helpful, I am coming from python

  • @johndavies729
    @johndavies729 Před 2 lety

    Thankyou. Very well explained.

  • @farhanfamim763
    @farhanfamim763 Před 7 měsíci +1

    Well explained. 👏🏻

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

    super helpful, thnx!

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

    God bless you

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

    Man!!!! You are just amazing. Your teaching style is the best. A lot of knowledge in a short amount of time. Keep it up bro. :D

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

    Great Video, I liked the video

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

    thank you

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

    Thanks

  • @zlcoolboy
    @zlcoolboy Před 2 lety

    Definitely understand why all the comments I looked at while working on array problems would say stuff like "why are you not using vectors instead?" lol. So much easier to deal with.

  • @leerdoor
    @leerdoor Před 2 lety

    I love the down-to-earth chalkboard teaching

  • @adventuresinphysics5069

    Very well explained

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

    Nice video! I'm doing C++ & C# simultaneously at school so this type of content is really great!

  • @moustafadabbous3657
    @moustafadabbous3657 Před 2 lety

    Thanks for existing in my life

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

    best video

  • @PunmasterSTP
    @PunmasterSTP Před 3 lety

    This stuff is important; let’s all stay #!

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

    this guy is like, why not just finish our new app on the blackboard

  • @ArKa_47
    @ArKa_47 Před 2 lety

    whoohoo.. vectors ftw!
    hehe, I like it

  • @eliaspfeffer
    @eliaspfeffer Před 2 lety

    Uh nice! THX!

  • @okkami676
    @okkami676 Před 2 lety

    What is that awesome outro music @ 7:39? Thank you!

  • @abdopower5913
    @abdopower5913 Před 5 lety +1

    hi bro did u finish C# ??

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

    std::cout

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

      Gizio the Jackal getline(“yes, arrays have actually grown on me a bit”)

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

      STOP HATIN

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

    so a vector uses the heap?

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

    Ooooooo, where half way theeeerre

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

    As far as why it is called "vector": the word origins of vector is shared "wagon". A wagon carries stuff. A vector also carries stuff. A vector is used in other contexts because it carries something. For example, pests such as rats are called vectors because they carry disease. Vectors in math/physics are so called because they carry a direction and a magnitude. Then again, maybe I am totally wrong, but I doubt it. Furthermore, the use of the word "vector" in C++ might be due to the background of Bjarne Stroustrup. It might be that vector is a more common word in Danish. I have no idea if that last point is true. Just throwing it out there.

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

      @Peterolen Ah. Interesting. Thank you for your contribution! It is greatly appreciated.

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

    you can also get the size by using
    int length{static_cast(std::size(items))};
    output = std::cout

  • @morevxel
    @morevxel Před rokem

    angled brackets

  • @boblee5556
    @boblee5556 Před 2 lety

    You should be a university professor... you just made my prof (A former Microsoft employee with a Masters) look like a fool

  • @dianacheruto365
    @dianacheruto365 Před 2 lety

    Hey Caleb have got windows 10 , tried install an IDE for C++ but in vain... please help

  • @mashamell0w
    @mashamell0w Před rokem

    Vectors are so much better than arrays when it doesn't come to memory TT

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

    You are doing god’s work for doing these videos! Lol

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

    Is this compatible with the M1 macbook ?

  • @yash1152
    @yash1152 Před 2 lety

    7:27 yeah, the agony with array sizes in C, ughhhh :(

  • @parkersmith3727
    @parkersmith3727 Před 2 lety

    youre wayy better than the other dude that pops up his voice is so annoying.

  • @Haxr-dq6wt
    @Haxr-dq6wt Před 2 lety

    Hello Caleb the chubby chicken

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

    What does that happy face that is in the board mean? Is it a humanity secret? Is it something about the death of xxxTentation? Help me please, I need answers

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

    why are you explaining c++ on a chalk board.

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

    Omg I finally come back to you after 2 years. I can see you gained some weight lol.

  • @aswinsajeev4148
    @aswinsajeev4148 Před 3 lety

    not as good as explanations by the indian guys on youtube. but still good.

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

    you're a good man, and you're doing things right with you're life...thanks