C# - Arrays

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии •

  • @TutorialsPoint_
    @TutorialsPoint_  Год назад +1

    To Get Certification, Click Here: bitly.ws/P9Up
    Use coupon "RUclips12" to get ‘’FLAT 12%’’ OFF at Checkout.

    • @BroCodeFan
      @BroCodeFan 6 месяцев назад

      // Thema's en teams
      string[] themaRondes = { "Sport", "Cultuur", "Politiek" };
      int aantalTeams = 4;
      string[] teamNamen = new string[aantalTeams];
      int[,] scores = new int[aantalTeams, themaRondes.Length];
      // Namen en scores invoeren
      for (int i = 0; i < aantalTeams; i++)
      {
      Console.Write($"Voer de naam in van team {i + 1}: ");
      teamNamen[i] = Console.ReadLine();
      for (int j = 0; j < themaRondes.Length; j++)
      {
      Console.Write($"{teamNamen[i]}, {themaRondes[j]} score: ");
      scores[i, j] = int.Parse(Console.ReadLine());
      }
      }
      // Winnaars per ronde bepalen
      for (int j = 0; j < themaRondes.Length; j++)
      {
      int hoogsteScore = -1;
      string winnaar = "";
      for (int i = 0; i < aantalTeams; i++)
      {
      if (scores[i, j] > hoogsteScore)
      {
      hoogsteScore = scores[i, j];
      winnaar = teamNamen[i];
      }
      }
      Console.WriteLine($"
      Winnaar van de {themaRondes[j]} ronde is: {winnaar} met {hoogsteScore} punten.");
      }

  • @FeeDeeX46
    @FeeDeeX46 5 лет назад +8

    Thank you, you're amazing explaining, greetings from Argentina

  • @Squidley32
    @Squidley32 6 лет назад +5

    Thanks so much for this video, very clear and helpful, this saved my homework assignment

  • @sajidmushfikrahman4085
    @sajidmushfikrahman4085 5 лет назад +6

    Array are part of "Reference Type". Which store the reference on----stack
    values in ---heaps
    **Array has size which is static.

  • @samparab77
    @samparab77 5 лет назад +1

    Thank you so much to clear the Concept of array with examples

    • @BroCodeFan
      @BroCodeFan 6 месяцев назад

      // Thema's en teams
      string[] themaRondes = { "Sport", "Cultuur", "Politiek" };
      int aantalTeams = 4;
      string[] teamNamen = new string[aantalTeams];
      int[,] scores = new int[aantalTeams, themaRondes.Length];
      // Namen en scores invoeren
      for (int i = 0; i < aantalTeams; i++)
      {
      Console.Write($"Voer de naam in van team {i + 1}: ");
      teamNamen[i] = Console.ReadLine();
      for (int j = 0; j < themaRondes.Length; j++)
      {
      Console.Write($"{teamNamen[i]}, {themaRondes[j]} score: ");
      scores[i, j] = int.Parse(Console.ReadLine());
      }
      }
      // Winnaars per ronde bepalen
      for (int j = 0; j < themaRondes.Length; j++)
      {
      int hoogsteScore = -1;
      string winnaar = "";
      for (int i = 0; i < aantalTeams; i++)
      {
      if (scores[i, j] > hoogsteScore)
      {
      hoogsteScore = scores[i, j];
      winnaar = teamNamen[i];
      }
      }
      Console.WriteLine($"
      Winnaar van de {themaRondes[j]} ronde is: {winnaar} met {hoogsteScore} punten.");
      }

  • @trueindian2108
    @trueindian2108 2 года назад

    Really nice and informative video.

  • @IndritVaka
    @IndritVaka 3 года назад

    Thanks, man, it's very helpful

  • @MiaTheDreamer
    @MiaTheDreamer 3 года назад

    Thank you 😊

  • @abdulraufkhan5858
    @abdulraufkhan5858 6 лет назад +2

    sir why are we using .length when we store the value from user

    • @deanpotter6654
      @deanpotter6654 6 лет назад +1

      That's not what happened. The .Length property was used to establish how many times the for loop needed to run, based on the length of the array that he defined. Whatever number the user input had to be checked whether it occurred in his predefined array. If it matched one of the elements, then the bool is set to true and finally an if statement printed the appropriate message based on the state of the bool.

  • @KarthikMumadi
    @KarthikMumadi 3 года назад

    please give runtime examples as well

  • @eitan3215
    @eitan3215 4 года назад

    Thanks a lot

  • @FahimAhmed-iq7do
    @FahimAhmed-iq7do 5 лет назад +2

    jagged Array is xossssssssssssssss

  • @MxolisiHuey
    @MxolisiHuey 2 года назад

    I love this

  • @WaqasAhmed-om8ph
    @WaqasAhmed-om8ph 6 лет назад +1

    i want to store array value from user , how can i store?

  • @selvapriya4115
    @selvapriya4115 4 года назад

    how we use INPTR in cPP ???

  • @manjeetnandal1
    @manjeetnandal1 5 лет назад

    Good video.
    But not perfectly explaining!

  • @PixelFlicksMovieMagicGaming
    @PixelFlicksMovieMagicGaming 3 года назад +1

    He didn't know how to explain it properly

    • @jamesroot9777
      @jamesroot9777 Год назад

      Did you see the pictorial representation of the array?