How to read all the numbers indicated with a space in the line Edit1 in C ++ Builder?
My code is:
AnsiString str, ap; int mas[1000],i,len; str = Edit1->Text; len = str.Length(); for(i=1;i<=len;i++){ ap = str.Pos(' ')-1; mas[i] = StrToInt(str.SubString(1,StrToInt(ap))); str.Delete(1,StrToInt(str.Pos(' '))); len= str.Length() ; } But it works crookedly. Tell me the method of solving the problem