fork download
  1. // Lab_1_kurs_2.cpp
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7. char str[256];
  8. FILE* myfile;
  9. myfile = fopen("test_1.txt", "r");//открываем файл
  10.  
  11. fscanf(myfile, "%d", str);
  12.  
  13.  
  14.  
  15. fclose(myfile);//закрытие файла
  16.  
  17. }
  18.  
  19.  
Runtime error #stdin #stdout 0s 4524KB
stdin
Standard input is empty
stdout
Standard output is empty