How to make, after entering the data into the matrix, the program asks whether everything was correctly entered and if not, then offered to select which line exactly and made it possible to correct this error in it?
I assumed that you could use: function TryStrToFloat(s: string; var value: single): boolean; However, I really don’t know how to work with it and something isn’t working out yet. Can you please tell me any other ways, or how to work with this function?
Here is a part of the code in which you actually need to “plug in” this code (I apologize for the tautology):
writeln('Решение СЛАУ по методу Гаусса.'); repeat writeln; writeln('Введите колич-во неизвестных величин и нажмите ENTER:'); readln(s);{читаем строку} val(s,x,v);{пытаемся преобразовать ее в число, в переменную C - упадет позиция, с недопустимым символом} if v<>0 then writeln('Должно быть число') else n := Round(x); until v=0;