Dont usually go out of my way to comment but you are a blessing man, taking a coding class for grad school and youre helping me feel like im not gonna fail. best easy to understand quick tutorials
I know a bit of java, but since Im wanting to become a game dev, these tutorials have been helping me learn a lot of the classes used in C# since I already know the syntax
Honestly, Thank you so much for this. You simplified this subject matter to a point where I can comprehend the need for an array. How could we support you; do you have a bootcamp or anyway I can donate to you?
using System;
namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{
// array = a variable that can store multiple values. fixed size
//String[] cars = {"BMW", "Mustang", "Corvette"};
String[] cars = new string[3];
cars[0] = "Tesla";
cars[1] = "Mustang";
cars[2] = "Corvette";
for (int i = 0; i < cars.Length; i++)
{
Console.WriteLine(cars[i]);
}
Console.ReadKey();
}
}
}
Thank you, Sir!
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.");
}
@@officialmoai3107 // 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.");
}
The comparison to variables made this so much easier to understand. Thank you for simplifying this so much.
Bro code is an absolute legend bro. Explaining stuff way better than my profs in college.
Dont usually go out of my way to comment but you are a blessing man, taking a coding class for grad school and youre helping me feel like im not gonna fail. best easy to understand quick tutorials
I know a bit of java, but since Im wanting to become a game dev, these tutorials have been helping me learn a lot of the classes used in C# since I already know the syntax
Honestly, Thank you so much for this. You simplified this subject matter to a point where I can comprehend the need for an array. How could we support you; do you have a bootcamp or anyway I can donate to you?
Thanks for the video Bro.
Great vid!🎉
Ahh, I love the bass sound when you are typing! ASMR Coding!
Thanks Bro!
The late night coding sessions is what I live for
thank u man
SOS GOD FLACO
Thanks this made everything click
Thank you ❤
my brain has blowed up lol
That means it's working
So there is no Array in the stack in C#. Is everything in a heap?
How long did it take you to be the amazing at coding ?
top
noice
I got an exam tomorrow thanks dude hahah
good luck
done
lesson check😇