Buckys C++ Programming Tutorials - 36 - Multidimensional Arrays

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 341

  • @benjamintan90s
    @benjamintan90s 9 ปีที่แล้ว +187

    Thank You ! you explain something in 6 mins that my lecturers cannot explain for weeks

    • @asmaabdulmajeed5689
      @asmaabdulmajeed5689 9 ปีที่แล้ว +2

      +Tan Ben 
      i agree

    • @rahulv4943
      @rahulv4943 8 ปีที่แล้ว +12

      Maybe, because you don't pay attention there?

    • @imabrony.cryaboutit.2274
      @imabrony.cryaboutit.2274 8 ปีที่แล้ว +38

      Albert Einstein said "If you can't explain it simply, you don't understand it well enough."
      Maybe you should point your teacher to Bucky's tutorials... :P

    • @giovannicorraliza4393
      @giovannicorraliza4393 6 ปีที่แล้ว +3

      @@rahulv4943 nah brah my professor seem like they barely understand it them self

  • @davidcastle8476
    @davidcastle8476 12 ปีที่แล้ว +17

    I have been following your tutorials for some time to supplement my class questions that my teacher has trouble explaining in a coherent way. I 100% love what you are doing. You teach in a concise to the point manner with common sense and good analogies. I wish school professors being paid big bucks could do the job of you providing these free tutorials lulz.

  • @togmeister8604
    @togmeister8604 9 ปีที่แล้ว +57

    These tutorials get easier the more you do. On first day I got 6 tutorials done and now I've got currently 30 tutorials in one day.

    • @aceuayylmao420kappa
      @aceuayylmao420kappa 9 ปีที่แล้ว +6

      Togmeister I've just been replaying them for about a month, making sure I have everything he is teaching us figured out (for the most part, you learn new things everyday :p) after that I will move on and try making my own projects

    • @tehkid93
      @tehkid93 9 ปีที่แล้ว +1

      Orbit™ a month? wtf? do you like pass 2 tutorials a day or what

    • @togmeister8604
      @togmeister8604 9 ปีที่แล้ว +11

      tehkid93 He said he replays them.

    • @SetYourHandle3
      @SetYourHandle3 9 ปีที่แล้ว +3

      Orbit™ Hey, in case u are interested, there is an app on android which uses Bucky's videos to teach people C++ and after a short amount of the video it asks u questions about what Bucky said or asks u to complete a syntax,etc. its very useful................................................................... I hope bucky isnt mad about them using his videos. I mean, its a non-profit app based only on donations and bucky receives his part from youtube views and ads before video starting. www.sololearn.com/Course/CPlusPlus/

    • @soufianesalhi8802
      @soufianesalhi8802 9 ปีที่แล้ว

      +Togmeister just like me

  • @SenzoDlomo
    @SenzoDlomo 5 ปีที่แล้ว +2

    Man, we miss you Bucky Roberts, helped me learn Java and now C++, your videos are never going out of date, this is over 8 years later and still relevant and helpful

  • @fatima-oy7gk
    @fatima-oy7gk 4 ปีที่แล้ว +2

    You teach amazing!!!! I thought I was never gonna understand this concept. You explained in 6 minutes what my teacher couldn't in 2 hours.

  • @KaletheQuick
    @KaletheQuick 6 ปีที่แล้ว +8

    Bucky, holy crap. I have been watching your tuts for years. You are the best. Thank you for teaching me so much!

  • @calvinbeckingham586
    @calvinbeckingham586 6 ปีที่แล้ว +2

    All of your videos are so helpful Bucky, thank you so much for your work! I would be completely lost in my Engineering programming unit if it wasn't for you! I will definitely recommend your tutorials to anyone struggling with C++.

  • @carlaludgate6597
    @carlaludgate6597 8 ปีที่แล้ว +41

    "it's just like inception" - haha! dude you rock

  • @Limpuls
    @Limpuls 6 ปีที่แล้ว +146

    You could just write multi array like this
    ... = {{2, 3, 4},
    {8, 9, 10}};
    It's easier to visualise it this way, than type it all out in one line.

  • @jimw3220
    @jimw3220 8 ปีที่แล้ว +60

    I'm watching this during a test. Oh shit, a TAs coming!

    • @czechchineseamerican
      @czechchineseamerican 8 ปีที่แล้ว +11

      If you were really all about that programming life, you would have been watching this during your biology test, so your TA wouldn't have cared ;)

  • @iVipulSurvase
    @iVipulSurvase 13 ปีที่แล้ว +2

    Thanks a 1000 times.
    Even my professor couldn't explain this concept so clearly.

  • @jasonf8129
    @jasonf8129 7 ปีที่แล้ว +1

    you have made my life so much easier. currently taking my first C++ course and these videos are such a big help. Thanks Bucky

  • @kmwakutuya
    @kmwakutuya 8 ปีที่แล้ว

    Easily the best explainer of code i've ever seen. I dont understand why everybody else has to be so technical and professional about this stuff because then people get lost. You speak with normal lingo so everybody can follow. Thanks

  • @yamuson08
    @yamuson08 13 ปีที่แล้ว +1

    you have been my C++ professor all semester. I wish I could save the money because I learn more watching these videos.

  • @Frances3654
    @Frances3654 11 ปีที่แล้ว +42

    Yo dawg, I heard you like arrays, so we put an array in your array, so you can store elements while you store elements!

  • @ytarame
    @ytarame 2 ปีที่แล้ว +1

    Saved my life man,I've been trying to do it but it wasn't working. I was forgeting about the "," between the rows.

  • @danielhaslam5179
    @danielhaslam5179 7 ปีที่แล้ว

    For the first three minutes of the video this was confusing. But when you visually plotted the array it all came together. Thanks Bucky!

  • @alihassan2203
    @alihassan2203 9 ปีที่แล้ว +2

    I love you bucky
    I was confused from weeks and you just give me answer in 6 minutes

  • @problematicpunk
    @problematicpunk 7 ปีที่แล้ว +1

    This tutorial series has been really helpful while learning Game Maker. Love your tutorials as always Bucky! I actually learned python from you, so this is my 2nd tutorial series ;) I love python. Probably my favorite language.

  • @yasenbonev7879
    @yasenbonev7879 8 ปีที่แล้ว +64

    Watermelon.exe never disappoints

    • @Golden2Talon
      @Golden2Talon 7 ปีที่แล้ว +1

      lmao didnt even notice that one

    • @Trolld
      @Trolld 6 ปีที่แล้ว

      watermelon.exe has stopped working

  • @aestheticamorous
    @aestheticamorous 11 ปีที่แล้ว

    This is exactly right. If I ever make big video games I'll be giving Bucky a percentage of what I make that's for sure. He deserves it.

  • @satyamlnu2798
    @satyamlnu2798 4 ปีที่แล้ว

    You are doing a wonderful think Bucky,keep it up

  • @mirandac8712
    @mirandac8712 8 ปีที่แล้ว +3

    You're the best programming instructor I've ever had -- with one exception, when I got my doctorate at a pretty famous ivy league school :)

    • @allastname9143
      @allastname9143 7 ปีที่แล้ว +3

      So you have a doctorate from a famous ivy league school, with at least some programming instruction at doctorate level, yet you're here getting instruction on the very basics of C++? I call shenanigans on you. Lemme guess - you start high school next year...

    • @mirandac8712
      @mirandac8712 7 ปีที่แล้ว +1

      Yeah that must read strangely! My degrees were in music and finance, so we took courses haphazardly. You'd be surprised (or maybe not) how many people who go very far never learn the fundamentals.
      Anyway my point was these tutorials' easy-going charm doesn't sacrifice precision or accuracy. Academia could do with a lot more of that approach.

    • @allastname9143
      @allastname9143 7 ปีที่แล้ว +1

      Fair enough. I jumped to a conclusion (happens a lot on TH-cam comments that people mis-represent themselves). Where I study doctoral students aren't involved in undergrad classes so it seemed even more unusual to me. Kudos for going outside your comfort zone!

  • @talhaahmed3895
    @talhaahmed3895 8 ปีที่แล้ว

    Best Tutorials For Life Watched Each One Of Em!

  • @muhammadwasi5460
    @muhammadwasi5460 5 ปีที่แล้ว

    Dude you're the best .... see you in your dream....
    You're videos are just mesmerising peace!

  • @Stoukanyov
    @Stoukanyov 12 ปีที่แล้ว

    Hey dude, you rock man! =)
    Greetings from Bulgaria! I'm a huge fan of yours and thanks for all the tutorials you have posted.

  • @Jack-4242
    @Jack-4242 13 ปีที่แล้ว

    this is very helpful
    this way you can create a map in a game and check the coordinates and so check if the character collides with the wall or with enemies or something like that

  • @BobFoxhound
    @BobFoxhound 9 ปีที่แล้ว

    These tutorials are very good - An educator

  • @aurelliaqaleesya7825
    @aurelliaqaleesya7825 3 ปีที่แล้ว

    really easy to understand:) Hello from Malaysia

  • @Lolatyou332
    @Lolatyou332 10 ปีที่แล้ว +1

    You can think of a multi-dimensional array as a menu system, where the first row is start/menu/preferences... Then you go into those each separately, start-{quit, play, stop} menu-{stuff}

  • @iXenoCider
    @iXenoCider 13 ปีที่แล้ว

    When I first started learning, boy did I want to do the same thing... Now I just go through them like butter and instead of hoping for something like that, I just hope that i learn something awesome! Which is normally found in Bucky's tutorials lol

  • @megispahiu2982
    @megispahiu2982 8 ปีที่แล้ว

    u explained this in such a short video. is really easy like this. thank you

  • @grvin19
    @grvin19 5 ปีที่แล้ว

    That made a surprising amount of sense

  • @UltraAnalisis
    @UltraAnalisis 8 ปีที่แล้ว +1

    Thanks, many of your videos are great

  • @invinciblegamer2796
    @invinciblegamer2796 2 ปีที่แล้ว

    An amazing channel fr thank you so much🙏❤️

  • @Legendofmudkip
    @Legendofmudkip 9 ปีที่แล้ว +11

    I'm watching this during my lab class :P

  • @jairoacosta8940
    @jairoacosta8940 6 ปีที่แล้ว

    thanks, i came from the GameMaker engine where array[ column ][ row ], all these short videos are nice references.

  • @idonotwanttonamemychannel217
    @idonotwanttonamemychannel217 10 ปีที่แล้ว +15

    Random fact: there are NO multidimensional arrays in C++. I read (in the best-seller C++ book of 2013, sorry I forgot the name) that there are no such things in C++.
    The way that C++ handles these, they are really called "arrays of arrays".
    But the term "multidimensional arrays" has been used so much that the term is essentially accepted.
    Don't worry you can say it by that term but I just felt like telling anyone reading this a fun fact :p

    • @idonotwanttonamemychannel217
      @idonotwanttonamemychannel217 10 ปีที่แล้ว

      ***** what?

    • @idonotwanttonamemychannel217
      @idonotwanttonamemychannel217 10 ปีที่แล้ว

      Sorry I'm confused as to what you are saying. Are you saying that the C compiler doesn't handle arrays of arrays? Because they do... otherwise it wouldn't work..

    • @idonotwanttonamemychannel217
      @idonotwanttonamemychannel217 10 ปีที่แล้ว

      C handles arrays of arrays. C++ also handles arrays of arrays. There are no such things as multidimensional arrays.

    • @Rin-qj7zt
      @Rin-qj7zt 9 ปีที่แล้ว +1

      +MrKillius24
      _"C does not handle them the compiler does arrayone[]arraytwo[]"_
      this is actually two separate sentences. it's a bit confusing.
      _"C++ and the compilers do handle 2d-3d arrays as what they are different type of arrays."_
      This doesn't look like a valid sentence in english. it looks like you just stuck "different type of arrays." at the end of the sentence "C++ and the compilers do handle 2d-3d arrays as what they are"
      it was just bugging me. >.>
      sorry, i have no life. D=

  • @xaviadenson2097
    @xaviadenson2097 5 ปีที่แล้ว

    Dude thanks so much for making these videos!!

  • @ZayMeisters
    @ZayMeisters 6 ปีที่แล้ว +1

    This video helped me with a bug in my code. THANK U SO MUCH😭😭😭😭

  • @sajadtorkamani9399
    @sajadtorkamani9399 10 ปีที่แล้ว +1

    Very well explained!

  • @DaanSnqn
    @DaanSnqn 7 ปีที่แล้ว +7

    It's a matrix. Take the red pill, Sally!

  • @puffbluesam021
    @puffbluesam021 10 ปีที่แล้ว

    WOW! JUST WOW! THANK YOU SO MUCH BUCKY!!!!

  • @muhammadmashhoodsheikh1006
    @muhammadmashhoodsheikh1006 6 ปีที่แล้ว

    Really helps a'lot, thanks dude

  • @CryosFOXHOUND
    @CryosFOXHOUND 11 ปีที่แล้ว

    This made things much more clear to me. Although I'm curious as to how we would write the multi dimensional array so that we can take input from a user and put it in the array. And then loop asking for input until terminated.

  • @plsnohorny8802
    @plsnohorny8802 2 ปีที่แล้ว

    Thank you for this video!!

  • @freshparker2459
    @freshparker2459 5 ปีที่แล้ว

    You literally just saved my life! This guy that I am learning c++ from on Udemy can totally suck ass sometimes and not explain things right. But you, my friend, are the bomb! Do you teach on Udemy?

  • @Boomerlance
    @Boomerlance 13 ปีที่แล้ว

    I cannot believe i actually understood this!!!!!!

  • @musakhan5927
    @musakhan5927 9 ปีที่แล้ว

    awesom work
    bucky

  • @kaselukakundaj2621
    @kaselukakundaj2621 5 ปีที่แล้ว

    thank you bucky you rock🙌

  • @vishonthvenkatesh4616
    @vishonthvenkatesh4616 4 ปีที่แล้ว

    cout

    • @sandwich5344
      @sandwich5344 4 ปีที่แล้ว

      #include
      using namespace std;
      bool bucky(string who, string what)
      {
      cout

  • @lopyus
    @lopyus 11 ปีที่แล้ว

    well explained bucky!

  • @TimelessPiano
    @TimelessPiano 13 ปีที่แล้ว

    This is where I got stuck in java at Multidimensional Arrays this time am pushing past this and moving on.

  • @familyaccount4753
    @familyaccount4753 4 ปีที่แล้ว +1

    Thank you so much!!!!

  • @yunfeilu8744
    @yunfeilu8744 10 ปีที่แล้ว

    it's very useful, thank you

  • @Qazqi
    @Qazqi 12 ปีที่แล้ว

    Implementations are recommended to accept a maximum of at least 256 dimensions, but that's not a requirement.

  • @TakingItCasual
    @TakingItCasual 13 ปีที่แล้ว

    Why am I finding this so extremely easy to understand?

  • @amosbanda9657
    @amosbanda9657 4 ปีที่แล้ว

    Wow this was so helpful

  • @Howtodothatshit
    @Howtodothatshit 10 ปีที่แล้ว

    @Herp Derpingson
    It depends on the compiler. Real compilers have limits, sometimes fixed and sometimes dependent on available storage (RAM or hard disk).

  • @devanshshukla8513
    @devanshshukla8513 11 ปีที่แล้ว

    Bucky, god bless you brother :)

  • @Nahiyan12
    @Nahiyan12 13 ปีที่แล้ว

    @olivebates
    GML is really easy language but it is not for making powerful programs as there is no built-in function to make text boxes, drop downs, etc. However, it has built-in powerful functions for making really good games, even 3d games. So I think there is no point of comparing it with C++ or any other language used for making programs, Game maker language is a must for beginners but not for making big programs, just for making games. I love GML and you really don't need to code GUI, etc.

  • @exsertchillax
    @exsertchillax 13 ปีที่แล้ว

    Programming is actually very difficult to learn. I hate to read about programming and instead watching buckys tutorials, because it's so much simpler to learn it from him than boring books.

  • @togmeister8604
    @togmeister8604 9 ปีที่แล้ว +2

    Ahhh. It would be really cool if you did a tutorial on editing pngs. Then you could arrays and the random methods and have user enter a seed and dimensions then it would generate a image of set dimensions and have random noise in it.

  • @Nahiyan12
    @Nahiyan12 13 ปีที่แล้ว

    @JakobRobert00
    I am not comparing GML to C++, GML is only suitable for games but there are a lot better languages for making games(I know that). I was just replying to another member, not comparing any language - just describing a language and explaining why it should not be compared with C++.
    It's not like a proper language, but much like giving commands to Game maker and tell it to give instructions to the computer in behalf of the user which is good for newbies. You misunderstood me.

  • @Marcos-yy8lk
    @Marcos-yy8lk 8 ปีที่แล้ว

    It is like the movie Inception = A dream inside a dream.

  • @ayachan5709
    @ayachan5709 10 ปีที่แล้ว

    Maybe you'll save my midterms!

  • @biggerthanblue
    @biggerthanblue 14 ปีที่แล้ว

    @thenewboston
    C++'s and Java's syntax is so much alike you must redo/add on
    your Java tutorials!
    Or at very least teach us some Swing concurrency!
    On topic : I love the C++ tutorials though!
    Thanks!
    mc

  • @ivandrofly
    @ivandrofly 12 ปีที่แล้ว

    Interesting... keep it up.

  • @preciseestimatingltd2579
    @preciseestimatingltd2579 4 ปีที่แล้ว

    Interesting how there's no fail-safe in c++ for accessing elements which are out of range e.g.
    int main(){
    int arrayMultiDim[4][6] = { {23,11,4567,83} , {47,2,99,877,31,88} };
    cout

  • @asmaabdulmajeed5689
    @asmaabdulmajeed5689 9 ปีที่แล้ว

    Thank u Sir
    Thank u so much Sir
    all the two points of initializing (w.r.t 2 rows 3 column & 3 rows 2 column ) still confusing me but after this lecture i can understand properly :-)
    Thanks Sir g :-)

  • @Som1Lse
    @Som1Lse 13 ปีที่แล้ว

    @olivebates Definitely easy to learn.
    The only problems with it is that it isn't as powerful as other programming languages (such as C++), nor is it completely free to use.

  • @Lumpiluk
    @Lumpiluk 13 ปีที่แล้ว

    Want to know a good practice for multidimensional arrays? Try programming Conway's Game of Life. It's not as hard as it may look at first and when you're done you'll get beautiful results ;)

  • @TheGodzilla1955
    @TheGodzilla1955 13 ปีที่แล้ว

    @JakobRobert00 the first programming was done with a magnetized needle and a steady hand.

  • @Traxman80
    @Traxman80 11 ปีที่แล้ว +11

    Think of the board game battleship.

    • @CabooseTheDestroyer
      @CabooseTheDestroyer 5 ปีที่แล้ว

      That's good, but keep in mind that only works with 2-dimensional arrays.

  • @NotQuiteMelvin
    @NotQuiteMelvin 8 ปีที่แล้ว

    This makes so much more sense n ow

  • @NOS187
    @NOS187 13 ปีที่แล้ว

    Hey bucky, i cant seem to find the video were you told us which new compiler you are using now. Do you mind telling which it is? Im using Dev-C++ currently.

  • @Jack-4242
    @Jack-4242 13 ปีที่แล้ว

    @Nahiyan12 ah, ok
    i always wonder
    you need functions to build functions, so how were the first functions made? only by putting Zeros and Ones together in a special order?

  • @mrstickylamb2234
    @mrstickylamb2234 10 ปีที่แล้ว

    You could give my profs a run for their jobs

  • @toringedotno
    @toringedotno 13 ปีที่แล้ว

    Could you use multiple data types in multidimensional arrays?
    Like in PHP where you can mix strings and integers?

  • @Alexxv46
    @Alexxv46 13 ปีที่แล้ว

    The creator of the Matrix (the movie) once decided to create a 2-d array. And then he got smarter and created -3d array, then 4-d and so on. Then he created a variable X and created an X-d array, and then Neo came and became the chosen one... Bucky's good to go)

  • @ArvsGamer
    @ArvsGamer 12 ปีที่แล้ว

    this is why i use dev c++

  • @LurkrulDoesThings
    @LurkrulDoesThings 12 ปีที่แล้ว

    He explained that in an earlier tutorial. By default the updated c++ automatically returns 0 in main whether it is there or not.

  • @ClaudiuB
    @ClaudiuB 8 ปีที่แล้ว

    My teacher explained this in 6minutes 16seconds !

  • @PhilyC4
    @PhilyC4 13 ปีที่แล้ว

    You can have 20000 dimensional arrays =D; The number of "dimensions" an array has is the amount of square brackets you put. so you can have:
    int bigArray[2][3][4][5][1] = {{15,12},{11,12,13}.{1,2,4,5}.{2,4,5,7,7}.{5}}; which is 5D.
    pretty sure that's how u declare it... =D

  • @mokomamaminecraft
    @mokomamaminecraft 10 ปีที่แล้ว +2

    If you know about for loops it's not actually that hard to print the array to screen. I figured this out on my own:
    int main(){
    int bob[2][4] = {{4, 3, 9, 2}, {2, 6, 3, 8}};
    for(int y = 0;y < 2;y++){
    for(int x = 0; x < 4; x++){
    cout

  • @marche4ever
    @marche4ever 10 ปีที่แล้ว

    bucky is awsome!

  • @fadinajor4817
    @fadinajor4817 6 ปีที่แล้ว

    My body is not ready.

  • @HatinaweduMupiwa
    @HatinaweduMupiwa 13 ปีที่แล้ว

    dude you are great....

  • @Falker57
    @Falker57 12 ปีที่แล้ว

    Bucky can you please also give us examples of when you would use each new concept we learn? Especially as this gets more difficult? Really it would help. I know you already finished the tutorials but next programming tutorial you teach give us examples so we understand when to use it!

  • @olivebates
    @olivebates 13 ปีที่แล้ว

    @codyz153
    Personally I like GML (Game maker language). Its a mixture of 17 different languages, so you can both use stuff from C++, Delphi, ect., and mix it all around so it fits you, and your style of programming. Its my first programming language, so its possable to have it as a first programming language.

  • @rabibwolverine
    @rabibwolverine 12 ปีที่แล้ว

    How to manipulate dynamic multi arrays? I mean with pointers? I would like to load 2 arrays to the multi array in order to fill the 1st column ad the 1st row

  • @TheCosmicChicken
    @TheCosmicChicken 12 ปีที่แล้ว

    Arrays: This is the stuff {{dreams, dreams, dreams}, {dreams, dreams, dreams}} are made of.

  • @heavym3tal
    @heavym3tal 12 ปีที่แล้ว

    Does time in the lowest array "move" slower than time in the highest array?

  • @jurell4841
    @jurell4841 2 ปีที่แล้ว

    this is helpful!

  • @aljodewi
    @aljodewi 13 ปีที่แล้ว

    so we are using 1's and 0's to create a program to use those 1's and 0's
    Byteception?

  • @Pwncakes1966
    @Pwncakes1966 13 ปีที่แล้ว

    I love your tutorials but on the complicated topics I always forget them or get hung up because I will say, school offers practice programs that let you test what you have learned.

  • @Tulanir1
    @Tulanir1 12 ปีที่แล้ว

    So you can array while you array dawg!

  • @asrm
    @asrm 14 ปีที่แล้ว

    @fanreymysterio619 because it's the one in bucky's channel homepage.

  • @sharpesthawk
    @sharpesthawk 6 ปีที่แล้ว

    How to print that visual you had drawn in the video. What should I write to print the visual? #help#me#!

  • @parthmadan7212
    @parthmadan7212 2 ปีที่แล้ว

    Amazing!!