It seems that you confuse columns and rows. Columns are in vertical and rows are lean down. Columns are the second number in the array declaration and the rows are the first number.
Hehe yes thank you 🙂 My mind was occupied with looking at my lesson guide on my 2nd monitor, so I confused the two during the recording hehe 😅 Re-watching the video, I can see that I did use "column" and "rows" correctly at the start, and then around 2:05 I started screwing up my pronunciation saying "multidimensional", which most likely threw me off when explaining row 14.
Just a heads up, when you create an array with an initializer (as in, you give it some data right away), you don't need to specify the array size. Eg. var namesList = new string[,] { {"Daniel", "28"}, {"John", "34"}, ... } You don't need to say new string[4,2], just string[,] is ok. Same with single dimension arrays. Also, you can create jagged arrays with an initializer like this: var jagged = new int[][] { new int[] {1, 2, 3}, new int[] {1, 2}, new int[] {1, 2, 3, 4, 5} };
Please explain the applications of the topic as well. Can you create a video on how to create cascading drop-down.. Your explanation and teaching is very nice
You've confused rows with columns. Just remember that rows are horizontal and columns are vertical. Pretty obvious, I know. Also note that each row inside a 2D array is not called a dimension as you kept referring to the next row as the "next dimension". Otherwise a matrix with 10 rows would be called a 10D array, which is not true. Using the correct terminology is important in an instructional video, especially for viewers that are beginners.
Write a program that stores students’ information (e.g. id number first name, last name, middle name, course, year, email address and mobile number) in a multi-dimensional array. Initially put 200 random entries in your array (automate it). Also allow the user to search, insert and delete something into the array.
I usually think of it in a certain way, it is less confusing in a programming way to start at zero. If you start at one, does it mean you skip one and go to two or is one the start? With zero, you know it is the first position. That is just the way I think of it.
I never really liked arrays in C# because when you define the array you need to know how many items you will be adding to it. I rather use generic Lists where I don’t need to know how much data I will be adding.
Hi Mr Daniel I've watched your videos and they're superb thanks so much for everything but I have a problem with one. The comments video...when I click submit, the comments don't go into the database. Please help😭🙏
how do I use this as an input parameter? I'm making a level editor with a text file being the level tiles, so I need to create the array inside of a method because I don't know the size of the level before finding it. I ended up creating the array inside of a method but I now need to pass it onto another method, how would I do this? TL;DR: how do you make a method with a nested array like this as an input parameter?
It seems that you confuse columns and rows.
Columns are in vertical and rows are lean down. Columns are the second number in the array declaration and the rows are the first number.
Hehe yes thank you 🙂 My mind was occupied with looking at my lesson guide on my 2nd monitor, so I confused the two during the recording hehe 😅 Re-watching the video, I can see that I did use "column" and "rows" correctly at the start, and then around 2:05 I started screwing up my pronunciation saying "multidimensional", which most likely threw me off when explaining row 14.
Just a heads up, when you create an array with an initializer (as in, you give it some data right away), you don't need to specify the array size. Eg.
var namesList = new string[,] {
{"Daniel", "28"},
{"John", "34"},
...
}
You don't need to say new string[4,2], just string[,] is ok. Same with single dimension arrays.
Also, you can create jagged arrays with an initializer like this:
var jagged = new int[][]
{
new int[] {1, 2, 3},
new int[] {1, 2},
new int[] {1, 2, 3, 4, 5}
};
You need to pull this video bro, confusing the hell out of people by mixing up Columns with Rows.
Don’t think so bro 😎
wow i didn't know Elon musk does tutorials on UA-cam
he's Elon musk ??
Lol
@@alonwalker2520 yes
Omg now I see the resemblance of Dani and Musk XD
Thank you for this- I hadn't known about jagged arrays previous to watching this video! May come in handy! :)
Nice Tutorial, but at many places you called columns rows and vice versa.
I noticed that and it confused the hell out of me.
Yep he called column when is a row
I immediately noticed it but realized it quickly is just calling the rows as columns...
Your tutorials are super cool.
Are we done with the PHP Course?
mmtuts PHP course: ua-cam.com/video/qVU3V0A05k8/v-deo.html
Please explain the applications of the topic as well.
Can you create a video on how to create cascading drop-down..
Your explanation and teaching is very nice
You've confused rows with columns. Just remember that rows are horizontal and columns are vertical. Pretty obvious, I know.
Also note that each row inside a 2D array is not called a dimension as you kept referring to the next row as the "next dimension". Otherwise a matrix with 10 rows would be called a 10D array, which is not true. Using the correct terminology is important in an instructional video, especially for viewers that are beginners.
damn, ive heard of 2d arrays but I didn't know you could make multidimensional arrays
thankyou for your tutorial i learn a LOT
You are amazing ... but we need also Java please
OMG U SAVED MY LIFE THX
Write a program that stores students’ information (e.g. id number first name, last name, middle name, course, year, email address and mobile number) in a multi-dimensional array. Initially put 200 random entries in your array (automate it). Also allow the user to search, insert and delete something into the array.
Great video, i do have a question however, when counting dimensions, columns ...etc., why do we start at zero?
I usually think of it in a certain way, it is less confusing in a programming way to start at zero. If you start at one, does it mean you skip one and go to two or is one the start? With zero, you know it is the first position. That is just the way I think of it.
Great tutorial.
MMMMMMMMulMultidimensional Arrays. Cool one dude keep goin..
nice teaching
2:36 OK, I'm not crazy. I think you meant to say 4 rows, 2 columns.
I never really liked arrays in C# because when you define the array you need to know how many items you will be adding to it. I rather use generic Lists where I don’t need to know how much data I will be adding.
You don't actually need to define how many items. Try string[] test = { "test" };
or you can set it to 0 and then do Array.Resize later when you input data
i real thank u it help me
Subbed!
how do you loop through them?
What if the size of the jacket array's rows are unknown? Basically have it dynamic what's the syntax for that?
If you want an array that has a unknown number of indexes, then you use a List instead. 🙂
I think not to get confused 4 by 2 means 4 rows each with 2 columns
1:00 you do a mistake between row and column
just call it MDA brother, i feel your struggle.
Hi Mr Daniel I've watched your videos and they're superb thanks so much for everything but I have a problem with one. The comments video...when I click submit, the comments don't go into the database. Please help😭🙏
how do I use this as an input parameter? I'm making a level editor with a text file being the level tiles, so I need to create the array inside of a method because I don't know the size of the level before finding it. I ended up creating the array inside of a method but I now need to pass it onto another method, how would I do this?
TL;DR: how do you make a method with a nested array like this as an input parameter?
can you do windows form version?
First person to say first!
If i learn this c# .can i use it in unity for game devolopment
Yes 🙂
If I change var to string why doesn't it work? :P
Elon vai 🤘
you seem like wrong about col and row defines
Yes I did accidentally switch them around once in the video 🙂
homecome we dont have to count the length from 0?
years of academy training wasted
i was thinking the same thing
Its not Multidimensional. Its multi Ś H 1 Ţ
si syarp
You sound like you've just learn this yourself
Alright…? 😅 If you have nothing relevant or positive to say, it’s better not to say anything.
you know it's all great , but only if you were capable of speaking english, it would've been even better