define void main void int FILE read write read fopen laba_3_6 write fo

1
2
3
4
5
6
7
8
9
define n 6 void main (void) { int i,b[n],w,d,f,W[6],D[3],F[4]; FILE *read, *write; read=fopen("laba_3_6.c","r"); write=fopen("REZ.txt","w"); for(i=0;iif((w!=1)&&(b[0]==32)&&(b[1]==119)&&(b[2]==104)&&(b[3]==105)
&&(b[4]==108)&&(b[5]==101)){w=1;for(i=0;i<6;i++)W[i]=b[i];}
if((f!=1)&&(b[0]==32)&&(b[1]==102)&&(b[2]==111)
&&(b[3]==114)){f=1;for(i=0;i<4;i++)F[i]=b[i];}
if((d!=1)&&(b[0]==32)&&(b[1]==100)&&(b[2]==111))
{d=1;for(i=0;i<3;i++)D[i]=b[i];}
fputc (b[0],write);
if (b[0] == '=')fputc ('=',write);
for(i=1;ib[n-1]=fgetc(read); } while(b[0]!=EOF); if(w==1) for(i=0;i<6;i++)fputc(W[i],write); if(f==1) for(i=0;i<4;i++)fputc(F[i],write); if(d==1) for(i=0;i<3;i++)fputc(D[i],write); fclose(read); fclose(write); }