C# - Arrays

  Рет қаралды 114,568

TutorialsPoint

TutorialsPoint

Күн бұрын

Пікірлер: 25
@TutorialsPoint_
@TutorialsPoint_ Жыл бұрын
To Get Certification, Click Here: bitly.ws/P9Up Use coupon "KZbin12" to get ‘’FLAT 12%’’ OFF at Checkout.
@BroCodeFan
@BroCodeFan 4 ай бұрын
// 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 жыл бұрын
Thank you, you're amazing explaining, greetings from Argentina
@sajidmushfikrahman4085
@sajidmushfikrahman4085 5 жыл бұрын
Array are part of "Reference Type". Which store the reference on----stack values in ---heaps **Array has size which is static.
@Squidley32
@Squidley32 6 жыл бұрын
Thanks so much for this video, very clear and helpful, this saved my homework assignment
@basudevkhanal109
@basudevkhanal109 Жыл бұрын
you lazy😫
@trueindian2108
@trueindian2108 2 жыл бұрын
Really nice and informative video.
@samparab77
@samparab77 5 жыл бұрын
Thank you so much to clear the Concept of array with examples
@BroCodeFan
@BroCodeFan 4 ай бұрын
// 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."); }
@IndritVaka
@IndritVaka 3 жыл бұрын
Thanks, man, it's very helpful
@abdulraufkhan5858
@abdulraufkhan5858 6 жыл бұрын
sir why are we using .length when we store the value from user
@deanpotter6654
@deanpotter6654 6 жыл бұрын
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.
@MxolisiHuey
@MxolisiHuey 2 жыл бұрын
I love this
@KarthikMumadi
@KarthikMumadi 3 жыл бұрын
please give runtime examples as well
@MiaTheDreamer
@MiaTheDreamer 3 жыл бұрын
Thank you 😊
@eitan3215
@eitan3215 4 жыл бұрын
Thanks a lot
@selvapriya4115
@selvapriya4115 4 жыл бұрын
how we use INPTR in cPP ???
@WaqasAhmed-om8ph
@WaqasAhmed-om8ph 6 жыл бұрын
i want to store array value from user , how can i store?
@veerbahadur5423
@veerbahadur5423 6 жыл бұрын
kzbin.info/aero/PLdOT12odxrUoNQeRyIZtV9gEaKmK2YRD4
@sohaibisrar8463
@sohaibisrar8463 5 жыл бұрын
I know about it
@FahimAhmed-iq7do
@FahimAhmed-iq7do 5 жыл бұрын
jagged Array is xossssssssssssssss
@manjeetnandal1
@manjeetnandal1 4 жыл бұрын
Good video. But not perfectly explaining!
@PixelFlicksMovieMagicGaming
@PixelFlicksMovieMagicGaming 2 жыл бұрын
He didn't know how to explain it properly
@jamesroot9777
@jamesroot9777 Жыл бұрын
Did you see the pictorial representation of the array?
C# - Methods
19:32
TutorialsPoint
Рет қаралды 55 М.
C# arrays 🚗
5:57
Bro Code
Рет қаралды 61 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 6 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 30 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
How to Program in C# - Arrays (E05)
17:01
Brackeys
Рет қаралды 443 М.
C# - Data Types
16:48
TutorialsPoint
Рет қаралды 72 М.
C# - Inheritance
10:14
TutorialsPoint
Рет қаралды 44 М.
Dynamically Allocate A 2D Array | C Programming Tutorial
15:58
Portfolio Courses
Рет қаралды 37 М.
C# multidimensional arrays ⬜
5:06
Bro Code
Рет қаралды 47 М.
Arrays | C# | Tutorial 11
8:53
Giraffe Academy
Рет қаралды 45 М.
C# Lists 📃
6:46
Bro Code
Рет қаралды 106 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 6 МЛН