VB.NET Multidimensional Arrays

Tutorials Shared by the Internet Community

Advertisements


Synopsis

The benefit of using multidimensional arrays is that they are conceptually easier to manage.

Statistics

  • Total Hits - 28369

  • Total Votes - 124 votes

  • Vote Up - 55 votes

  • Vote Down - 69 votes

  • Domain - visualbasic.w3computing.com

  • Category - Visual Basic/Basic Concepts

  • Submitted By - Matt Watson

  • Submitted on - 2011-09-30 18:00:50

Description

The benefit of using multidimensional arrays is that they're conceptually easier to manage. Suppose that you're writing a game and want to track the positions of certain pieces on a board. Each square on the board is identified by two numbers: its horizontal and vertical coordinates. The obvious structure for tracking the board's squares is a two-dimensional array, in which the first index corresponds to the row number, and the second corresponds to the column number. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements