Advertisement
Vanya_Shestakov

files for pidoras artiom KONCHits

Oct 22nd, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. if not FileExists(Path) then
  2. begin
  3. IsCorrect := False;
  4. Writeln('File not found! Enter the absolute link to the file');
  5. end;
  6.  
  7. if not eof(InputFile) then
  8. Readln(InputFile, Line)
  9.  
  10. ifstream file(path);
  11. if (!file.is_open())
  12. {
  13. cout << "Файл не найден! Введите абсолютную ссылку на файл\n";
  14. isIncorrect = true;
  15. }
  16.  
  17. ofstream fout(path);
  18. for (int i = 0; i < order; i++)
  19. {
  20. fout << endl;
  21. for (int j = 0; j < order; j++)
  22. {
  23. fout << matrix[i][j] << " ";
  24. }
  25. }
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement