2
Answers

new to C#, trying to make an array from user input. please help

Photo of thomas struss

thomas struss

14y
8.1k
1
I'm new to C# and I'm trying to make an array out of user input.  I really don't care what type it is (double, int, etc.), or how long it is ([10], [20], etc).  How can I make an array that takes input from a textbox when a button is pressed and then stores it in [0], then stores the next user input from the textbox and stores it in [1], etc. until the array length is reached?  thanks very much in advance, I've been searching for days with no luck finding examples.

Answers (2)