fork download
  1. while(!feof(in)){
  2. memset(block, 0, sizeof(block)); //Îáíóëÿåì áëîê
  3. fread(block, sizeof(block), BLOCK_SIZE, in);
  4. fwrite(block, sizeof(block), BLOCK_SIZE, out);
  5. fputc('\n', in);
  6. for(int i = 0; i < BLOCK_SIZE; i++)
  7. printf("%c", block[i]);
  8. printf("\n");
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: expected unqualified-id before 'while'
 while(!feof(in)){
 ^
stdout
Standard output is empty