Visual Basic.NET Programming. Beginner Lesson 20. Two Dimensional Arrays

  Рет қаралды 26,233

Computer Science

Computer Science

Күн бұрын

This is the twentieth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson you will learn how to declare and initialise a two dimensional array variable. A two dimensional array, also referred to as a 2D array, is typically used to store and process related groups of data items. This video emphasises the importance of visualisation when it comes to working with 2D arrays; a 2D array can be visualised as a table with rows and columns. You will also learn how to output individual data items from a 2D array, by means of row and column references, and how to output an entire row or an entire column by means of a looping constructs. The next video of this series explains how to manipulate a 2D array with nested loops.

Пікірлер: 27
@andrews6013
@andrews6013 2 жыл бұрын
Your tutorials on visual basic is the sole reason that I haven't failed my computer science class yet. That and my professor is willing to work with me after I've figured out like 70% of what I'm doing
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Delighted to help. I will be making some more VB videos soon. :)KD
@rickyp9803
@rickyp9803 Жыл бұрын
I just started a C# boo camp and after regular arrays, we are learning 2d arrays. Since the beginning of the week, I've watched about 12 videos trying to understand them, but none has made it so easy to see the logic as you and I thank you for the knowledge. You turned the light on and now I can see how to handle them... Muchas gracias... rp
@Mr_Bute
@Mr_Bute 11 күн бұрын
Wikipedia: Ada Lovelace, (1815 - 1852) was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation. My words: Ada is acclaimed as the first person to program a machine/computer. Also recognise that a machine can be programmed for different purposes. She therefore invented the first programming language for her own use. she created and published the first computer algorithm... Astonishing!
@LMinett
@LMinett 3 жыл бұрын
Very helpful, as always, for my students
@jlitodelcid326
@jlitodelcid326 3 жыл бұрын
Good video
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you :)KD
@jtlunsford780
@jtlunsford780 Жыл бұрын
You make it easy to understand and thanks for the table layout. Very helpful. Appreciate all you're doing...Thanks so much.....jt
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
:)KD
@sizwemnamathi3736
@sizwemnamathi3736 3 жыл бұрын
Thank you for the video, it was very helpful :-)
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You're welcome :)KD
@sarika8278
@sarika8278 2 жыл бұрын
very helpful course. Thank you.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're most welcome. :)KD
@brylemacasuhot9231
@brylemacasuhot9231 2 жыл бұрын
I have a question does it indexes rows first then column?
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Interesting question. From the programmer's point of view, that depends on how you nest your loops. Behind the scenes, it depends on the programming language. This should help kzbin.info/www/bejne/pYiwaJmgls6KrZI :)KD
@brylemacasuhot9231
@brylemacasuhot9231 2 жыл бұрын
So, VB is a row major programming language. Thank you! :D
@ceiro4467
@ceiro4467 2 жыл бұрын
How would i display the mult dimensional array into a list box in the format of (x,y)?
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
There is no built in multi-column combobox available. There are however a number of websites that explain how you can create one. You could also use a datagrid control. Sorry I'm not much help right now but this is something I could cover one day in my advanced course. :)KD
@mikewade4255
@mikewade4255 2 жыл бұрын
Okay, I admit to being confused at first. It seems to me that "Obama" is in (0,1) rather than (1,0) and "Male" is in (0,2). Is it only a matter or perspective? I'll code a bit to see.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Absolutely right. If you think of a 2D array as a table, it's up to you what you store in the columns and what you store in the rows. It's also purely arbitrary what you call 'x' and what you call 'y' (if at all). Behind the scenes it's quite different. You might find this interesting kzbin.info/www/bejne/pYiwaJmgls6KrZI :)KD
@grantharrismusic
@grantharrismusic 2 жыл бұрын
Take a look at the way that the array is declared: Columns first and then Rows. "Obama" is in Column 1 and Row 0 so its reference co-ordinates will be 1,0
@IrisSappington-s3c
@IrisSappington-s3c 15 күн бұрын
Williams Linda Miller Melissa Martin Anthony
@ComputerScienceLessons
@ComputerScienceLessons 13 күн бұрын
?
@barrakiteclubshorts
@barrakiteclubshorts 2 жыл бұрын
mahatma gandhi love from india brother
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Love to you too :)KD
@mattreck8220
@mattreck8220 2 жыл бұрын
lame
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
:)
10 Years of VBA Array Knowledge in 40 Mins
41:57
Excel Macro Mastery
Рет қаралды 19 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 55 МЛН
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 44 МЛН
VB.NET 2013 - Arrays
32:11
Nicholas Dingle
Рет қаралды 69 М.
Java 2D arrays 🚚
8:06
Bro Code
Рет қаралды 172 М.
Basics of 2D array in VB
10:17
Sankar Srivatsa
Рет қаралды 1,3 М.
Visual Basic.NET Programming. Beginner Lesson 5. Input with Windows Forms
12:23
Introduction to Visual Basic Arrays
11:54
Dan McElroy
Рет қаралды 21 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 855 М.
Visual Basic - Creating and Using 2D Arrays
23:26
Computing and ICT in a Nutshell
Рет қаралды 4 М.
Visual Basic.NET Programming. Beginner Lesson 6. Debugging Code
8:29
Computer Science
Рет қаралды 40 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН