2d Arrays | C# | Tutorial 22

preview_player
Показать описание

Throughout the course we'll be looking at various topics including variables, arrays, getting user input, loops, conditionals, object orientation and much more.
Рекомендации по теме
Комментарии
Автор

I am still doing my online C# course!!! The ONLY reason I have gotten this far is because you put these C# tutorials on here!! THANK YOU!!! THANK YOU!!! THANK YOU!!!

MsCarbonCopy
Автор

Just commenting to say thanks. Because of your videos, I feel way more prepared for my unit4 programming exam tomorrow.

xixgolden
Автор

Thanks for the helpful video. Highly appreciate it I do have a question though How would you be able to create a 2D array consisting of string AND and integer elements?

thatobritou
Автор

Thank you so much for all. your videos. Because if it, I can understand C# and do my school assignments !!

sandynuvo
Автор

I was playing around and I noticed that numberGrid.Length is the total of elements in the array. And I noticed that is the .Rank function as well. I am just playing around with this and it works out well:

int[, ] numberGrid =
{
{1, 2, 12},
{3, 4, 34},
{5, 6, 56},
{7, 8, 78},
{9, 10, 910},
{11, 12, 1112},
{13, 14, 1314},
{14, 15, 1415}
};


for (int i = 0; i < + 1) ; i++)
{
Console.WriteLine(numberGrid[i, 0]);
}

Console.ReadLine();

This works because each "Column" has the same number of ranks. What if each "Columns" have different numbers of ranks, this command wouldn't work. I don't see a "Column" kind of function. How do I get this to work?

azorailke
Автор

That was a helpful a lot. Also it is briefly what i want to watch.

ihsanbarknsapmaz
Автор

really you are great and method of teaching is also good.

mubashirhussain
Автор

In python each element does not necessarily have to be an array, maybe only some, so it's interesting that in C# they do all have to be arrays

milesblack
Автор

can't you use a loop to make it even simpler?

crypticsavage
Автор

Hello!
Thanx for the tutorial!
Mentioned something about int[, , ] //Array with Many commas
Can you type an example for me how to setup this?
Thanx!

NIKOSPARAPONIARIS