Hello
I am trying to created an array that contain any number of rows (max is 1000) and 4 columns only.
I have tried using this 2D array, but the tutor told me i canoot use it since 2D array need integer and we have double like price, Here is the table :
Itemcode Item Quantity Price
123 Computer 13 1500
333 Printer 5 450
567 TV 8 1800
989 Camera 12 2200
For example if the question if i wanted to access one of the array in item column:
so is there is away to convert table to array?
do sugget making 4 arrays for each column?
Thank you in advance
I post this from University , i am going home now , so i may not around to reply for around an hour or so ?
regards
Abdirahman
I am trying to created an array that contain any number of rows (max is 1000) and 4 columns only.
I have tried using this 2D array, but the tutor told me i canoot use it since 2D array need integer and we have double like price, Here is the table :
Itemcode Item Quantity Price
123 Computer 13 1500
333 Printer 5 450
567 TV 8 1800
989 Camera 12 2200
For example if the question if i wanted to access one of the array in item column:
A[1][1] which is computer and Quanity A[1][2]
so is there is away to convert table to array?
do sugget making 4 arrays for each column?
Thank you in advance
I post this from University , i am going home now , so i may not around to reply for around an hour or so ?
regards
Abdirahman