accept user inputs and store them inside two dimensional array
If the 2 dim array contents are discussed as in rows and columns in each row, where do you want each item entered by the user to go?
For example: fill the columns on a row and move to the next row when all the columns on a row have values.
Or fill the first column for all the rows and move to the next column when all the rows are filled.
inside a rectangular array..
Like a user will be asked to enter his firstname and lastname and username and password and it will be save inside an array. the rectangular array will be a size of 10 by 4. I.e. 10rows, 4columns.
Like a user will be asked to enter his firstname and lastname and username and password
OK, I assume that would be an array of Strings.
What slot would be used for each item? For example 0,0 for firstname, 0,1 for lastname, etc.
If there is data for more than one person, where would the data go for each person? Would each person get his own row?
Use an assignment statement to put values into an array:
Post by:autobot
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
a bit of art, as a gift, the permaculture playing cards