C# multidimensional arrays ⬜

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • C# multidimensional 2D arrays tutorial example explained
    #C# #multidimensional #arrays

КОМЕНТАРІ • 53

  • @BroCodez
    @BroCodez  3 роки тому +20

    using System;
    namespace MyFirstProgram
    {
    class Program
    {
    static void Main(string[] args)
    {
    String[,] parkingLot = { { "Mustang", "F-150", "Explorer" },
    { "Corvette", "Camaro", "Silverado" },
    { "Corolla", "Camry", "Rav4" }
    };
    parkingLot[0, 2] = "Fusion";
    parkingLot[2, 0] = "Tacoma";
    /*
    foreach(String car in parkingLot)
    {
    Console.WriteLine(car);
    }
    */
    for(int i = 0; i < parkingLot.GetLength(0); i++)
    {
    for (int j = 0; j < parkingLot.GetLength(1); j++)
    {
    Console.Write(parkingLot[i, j] + " ");
    }
    Console.WriteLine();
    }
    Console.ReadKey();
    }
    }
    }

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

      Well that don't work well in a youtube comment section.
      Do you have a video of the best c# functions cause I can't find one.

  • @bakastep3107
    @bakastep3107 7 місяців тому +18

    I can't thank you enough for making this video. This might get buried in the comments, but I always find myself coming back to your videos for help.

  • @expansivegymnast1020
    @expansivegymnast1020 Рік тому +4

    Thanks! I like the short videos like this about smaller subjects. Sometimes I just need a refresher and not an hour long thing about it.

  • @e.dnorth
    @e.dnorth Рік тому +3

    thanks! i was confused by the training explanation in my course, and this explained exactly what I was confused by their wording!

  • @crazydave6787
    @crazydave6787 Рік тому +2

    Short sweet and to the point. Just the refresher I needed

  • @ninjanick5769
    @ninjanick5769 Місяць тому

    Thanks alot dude, 1st year game developer here,so your videos help alot when my lecturers dont feel like answering my freshman questions anymore

  • @fushitensho7840
    @fushitensho7840 Рік тому +14

    Wonderful, but I rather use "type[ ][ ]" instead of "type[ , ]", so it's easier to make dynamic irregular matrix if i want to :)

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

    Had a tough time trying to understand multidimensional arrays in class, but I easily understood them straight away when I watched this video. You're the best Bro💯

  • @krevin543
    @krevin543 3 місяці тому

    This is a great video! In my SoloLearn course I was confused by their introduction of {2,3} bracketed values into the multidimensional array exercise and how that effected the rows and columns in the index. Prior they had been using [8,8] code to set the rows and columns.

  • @duck7445
    @duck7445 4 дні тому

    Wow this is pretty complicated! I cant believe this is counted as intermediate. I wonder what advanced topics will be

  • @jay-leeshih258
    @jay-leeshih258 Рік тому +1

    i love you so much bro TT
    helping me pass my degree

  • @anatolii2202
    @anatolii2202 4 місяці тому

    wow that`s a long way actually, week number 2 and lesson number 30 brooo. thank you for help, i start to understand something now

  • @spartanranger
    @spartanranger 3 роки тому +3

    Thanks for the video Bro.

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

    I think in the for statement: onter loop for lows and inner loop for colums

  • @HishamButt-ue5rc
    @HishamButt-ue5rc 2 місяці тому

    Hey! i know you wont see this message but ive learned C# from you, thank you!

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

    Thanks so much it was really useful for me

  • @definitelynotchris4776
    @definitelynotchris4776 5 днів тому

    I feel like it should be illegal to watch something this good for free

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

    Thank Bro!

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

    isnt an array of arrays a jagged array?

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

    Thanks for help making me understand! Also sweet name

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

    You are amazing, I love you

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

    Very interesting😀! Thanks

  • @fornowhere7264
    @fornowhere7264 2 місяці тому

    i know this is 3 years old but I need to be adding new values onto the 2 dimensional array and I need to add whole 1D arrays to the rows of the 2D array and idk howwwww

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

    bro looks like a certified car geek.(Me also)

  • @MS-pq4il
    @MS-pq4il Рік тому

    So easy 🤟🔥 Thanks ❤❤❤

  • @maxwong1768
    @maxwong1768 Рік тому +4

    For 2D array :
    String[,] array_2D = {
    {"x0y0" , "x1y0"} , // y0
    {"x0y1" , "x1y1"} , // y1
    };
    // just like a table in coordinate system .


    for (int y=0; y

  • @GonConDon
    @GonConDon 6 місяців тому

    Thanks!!

  • @user-gk9fn8pu1f
    @user-gk9fn8pu1f Рік тому

    thank you man!

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

    Why the output declared the 3 elements of 0,1, and 2 array? He just used 0 and 1 array in his for loop condition, but he got those 3 elements of 0,1,2 array instead of 0,1 array only.. I'm confused about it.. Anyone can help me to understand that last part of the video?

  •  3 роки тому

    Thanks Bro!

  • @איתןישייב
    @איתןישייב 5 місяців тому

    you are a big W

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

    Thank you

  • @Miki-gd4rq
    @Miki-gd4rq Рік тому

    thank you

  • @vaderfloyd6926
    @vaderfloyd6926 11 місяців тому

    I’m confused as to why he was able to fit 3 arrays in a 2D array? Looking for a friend

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

    saved me once again

  • @CartoonzWorld-qk6kf
    @CartoonzWorld-qk6kf 9 місяців тому

    Where is jagged array

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

    using System;
    class Program
    {
    static void Main()
    {
    const string message = "I just love uhh bro";
    const int repetitionCount = 100000000;
    for (int i = 0; i < repetitionCount; i++)
    {
    Console.WriteLine(message);
    }
    }
    }

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

    noice

  • @SimplyZaidy
    @SimplyZaidy 2 дні тому

    bro neither wastes his time nor ours... be like bro

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

    thnx, but why did u said that this topic is hard, it really isn't

  • @jaerug.libanan8620
    @jaerug.libanan8620 Рік тому

    I love you

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

    lesson check

  • @justsomeguy4580
    @justsomeguy4580 2 роки тому +2

    i thinkkk im going o skip this oneeeeeeee

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

    A random comment down below.

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

    thanks bro