Answer the question
In order to leave comments, you need to log in
How to do without the split function?
Hello.
Like any newbie, a stupid but necessary question arises:
string s = TextBox.Text;
string[] sarr = s.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
int kol = sarr.Length;
arr = new int[kol];
for (int i = 0; i < kol; i++)
{
arr[i] = Convert.ToInt32(sarr[i]);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question