First I am sorry if I am creating a thread in the wrong category as I am not sure which is the best suitable place for this question:
Please provide me suggestions or any pointers.
I want to create a user defined data structure, which will be a 2 dimensional array such that each individual square of this 2-dimensional array will also store the score and the grades. ( Iam using VB.NET)
for example: There is an 2 dimensional array with 3 columns and 2 rows, I want to fill each of the
(0,0);(0,1);(0,2) with their own score (Integer type) and grades (String Type).
And this is same for the rest of the squares i.e. (1,0);(1,1);(1,2) and (2,0);(2,1);(2,2)
After creating such custom data structure: "CustomArray", I should be able to create the instance of this custom data structure (which will be a class) and code something like this:
Dim objCustomArray as CustomArray objCustomArray = New CustomArray for i as Integer =0 to 3 objCustomArray(0,i).SetScore(1) objCustomArray(0,i).SetGrade("Good") Next for i as Integer =0 to 3 Dim myVal as Integer = objCustomArray(0,i).GetScore() Dim myGrade as String = objCustomArray(0,i).gettGrade() Next
Edited 6 Years Ago by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).