klasscho

Untitled

Nov 20th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. var
  2. Matrixx: MatrixType;
  3. Size, i: Integer;
  4. FileName: string;
  5. Avrg: Real;
  6. MyTFile: TextFile;
  7. CorrectMatr: Boolean;
  8. Mass: TArr;
  9.  
  10. begin
  11. ReadFileName(FileName);
  12. CorrectMatr := IsTheMatrixCorrect(FileName);
  13. begin
  14. i := 0;
  15. repeat
  16. if CorrectMatr := True then
  17. begin
  18. ReadMatrix(Matrixx,FileName, Size);
  19. Size := SizeOfMatrix(MyTFile);
  20. MatrixOutput(Matrixx, Size);
  21. Avrg := Average(Matrixx, Size);
  22. AverageOutput(Mass, FileName, Size);
  23. WriteToFile(Mass, FileName, Size);
  24. end
  25. else
  26. CorrectMatr := False;
  27. writeln('The name of the matrix inputs incorrect. Try again. Example: Name.txt');
  28. until i = 1;
  29.  
  30. end.
Advertisement
Add Comment
Please, Sign In to add comment