+ 1

Array with string

How i can assign a string values to arrays elements in a loop

1st Mar 2017, 5:49 AM
Kuzanov Farit
4 Answers
+ 1
Ooo im stupid. Thank you friend!
1st Mar 2017, 2:45 PM
Kuzanov Farit
0
i want to assign any letter to any elements of string array. for exampe: string[] names = new string[5]; for (int k = 0; k < 6; k++) { string x; Console.WriteLine("insert next letter"); x = Console.ReadLine(); names[x]; } but this example is wrong
1st Mar 2017, 7:30 AM
Kuzanov Farit