Hello to everyone! I am new to c# and I am creating an address book program. It has to hold 20 entries (first name, last name, street address, city, state and zip). I am trying to figure out how to set up the arrays so that I can add entries, delete entries and shoe the profile info for each entry(user option). here is how my code looks so far.
[string [][] profile = new string[20][];
profile[0] = new string[6];
profile[1] = new string[6];
profile[2] = new string[6];
profile[3] = new string[6];
profile[4] = new string[6];
profile[5] = new string[6];
profile[6] = new string[6];
profile[7] = new string[6];
profile[8] = new string[6];
profile[9] = new string[6];
profile[10] = new string[6];
profile[11] = new string[6];
profile[12] = new string[6];
profile[13] = new string[6];
profile[14] = new string[6];
profile[15] = new string[6];
profile[16] = new string[6];
profile[17] = new string[6];
profile[18] = new string[6];
profile[19] = new string[6];
]
My logic is 20 profiles(entries) and the "new string[6]" is for the user input textboxes. Am I on the right track here?