《南开二级c语言一百题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
ᓭ100⚪ூ┯2.0᱐⚪1(id14ஹid27(isP()ᦪᣩᡂid23⚪)ᑏᦪjsValue(intm,intk,intxx)ᦪḄ!"#ᜧ%ᦪm'(☠mḄk*ᦪ+ᐭᦪ-xx./ᨬ23ᵨᦪwriteDat5610-ᦪ7ᑖ9:;<='><=?;ᑮᦻBout.datCDᑖEFG+ᙠᦻBprog1.cCI"K?ᐭ175ᑣM?;"19,23,29,31,37NᦋPQᦪmain()RᑏᦪwriteDatḄᑁT#include
1Pleaseentertwointegers:");scanf(0%d%dM,&m,&n);num(m,n,xx);for(m=0;m 2M);readwriteDat();)voidreadwriteDat()(intm,n,xx[1000],i;FILE*rf,*wf; 3rfVfopen("in.dat",T');wf=fopen("out.dat',,"w,');for(i=0;i<10;i++){fscanf(rf,"%d%dH,&m,&n);num(m,n,xx);for(m=0;m 4n);)fclose(rf)fclose(wf);)id14⚪(isP()ᦪ)#include 5?ᐭWᦪ:")scanf(n%d%dn,&m,&n);jsValue(m,n,zz);for(m=0;m 6H);writeDat();)writeDat()(intm,n,zzll00],i;FILE*in,*out;in=fopen("in.datn,"rM);out=fopen(',out.dat',,',wH);for(i=0;i<10;i++){fscanf(in,n%d%d",&m,&n);jsValue(m,n,zz);for(m=0;m 7fprintfCout/An");)fclose(in);fclose(out);)Z[\"voidnum(intm,intk,intxx[])(intn=0,data=m+1;while(n 8voidmain()inti;readDat();jsVal();printf("rsᩩBḄᦪ=%d 9”,ent);for(i=0;i 10M);writeDat();)writeDat()(FILE*fp;inti;fp=fopen(nout.dat","wu);fprintf(fp,H%d 11",ent);for(i=0;i 12",b[i]);fclose(fp);)ਭਮ⚪3(id133⚪ᣩᡂid59ஹ99m|c᎔⚪)ᦪReadDat()wᦻBIN.DATC56•ᦻᦻ+ᐭᑮm|ᦪ-xxCᑴᦪStrOR(),ᐸᦪḄ!"zᓫc>m|CᡠᨵxᑏmḄm|ᑁTᑮḄ+ᯠ2>xᑏmᑤ◀Ḅm|ᑁTᑮ_ᜐᳮm|Ḅ+£2>_ᜐᳮḄm|¤ᢥ¥¦+ᐭm|ᦪ-xxCᨬ2mainᦪ3ᵨᦪWriteDat><=xx?;ᑮᦻBOUT5.DATCI"§ᦻ"nanyfield.Yucancreateanindexyouhavethecorrectrecord.<="nanyfield.Yucancreateanindexrd.yuhavethecrrectrec§¨ᦪ7ᦻB+Ḅ©ª!"«Ḅ¬ᙳx%80m|®᪗°|±R²©~"DᑖEFG+ᙠᦻBprogl.cCNᦋPQᦪmainஹ5ᦪ7ᦪReadDatR?;ᦪ7ᦪWriteDatḄᑁT#include 13for(j=strlen(xx[i])-1;j>=O;j—){k=0;memset(tem,0,80);/*¸¨ᓄm|ᦪ-tem*/if(xx[i][j]==,o,)/*=º»m|'o',¼ᐭz½¾*/{righto=j;/*ᑣ#tm|CcjḄ¿ÀÁrighto*/for(s=righto+1;s 14\007");retum;)StrOR();WriteDat();)intReadDat(void)(FILE*fp;inti=0;char*p;if((fp=fopen(nIN.DATn,V))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xxli],' 15');if(p)*p=0;i++)maxline=i;fclose(fp);return0;voidWriteDat(void) 16FILE*fp;inti;clrscr();fp=fopen(nOUT5.DAT",nwu);for(i=0;i 17",xx[i]);fprintf(fp,n%s 18H,xx[i]);)fclose(fp);)[\V"voidStrOR(void){inti;chara[80],*p;for(i=0;i 19"#m|srcC»maxlenm|ÑÒᑮdestCÕᐵᜮᦻB"string.hchar*strcpy(char*dest,constchar*src)"#m|srcÎÏᑮm|destCÐÕᐵᜮᦻB"string.hਭਮ⚪4(id24⚪ᣩᡂid9m|ᓫÚ᎔⚪)ᦪReadDatwᦻBIN.DATC56ᦻᦻ+ᐭᑮm|ᦪ-xxCᑴᦪStrOL(),ᐸᦪḄ!"zᓫcÛCz²©ᡈ᪗°|±ᑖ◞ḄᡠᨵᓫÚ¼᎔ᨬ2>_ᜐᳮḄm|(MÅ®᪗°|±)¤ᢥ¥¦+ᐭm|ᦪ-xxCᨬ23ᵨᦪwriteDat><=xx?;ᑮᦻBOUT6.DATCI"§ᦻ"YouHeMeIamastudent.<="MeHeYoustudentaamI§¨ᦪ7ᦻB+Ḅ©ª!"«Ḅ¬ᙳx%80m|®᪗°|±R²©DᑖEFG+ᙠᦻBprogl.cCNᦋPQᦪmain()>5ᦪ7ᦪReadDat()R?;ᦪ7ᦪwriteDatḄᑁT#include 20ᐭᑮm|ᦪ-strC,s¿î*/)for(m=l;mv=k;m++)/*töḄk¿º»m|C÷ᓫÚḄðøᙠlfor¶·Cù+ᐭᑮm|ᦪ-strCᡠzᙠeú#ᐸ+ᐭᑮstrC*/str[s++]=xx[i][j+m];strlsk'O';/*ᙠº»êî0z᪗ûtḄ<ü*/strcpy(xx[i],str);/*#᎔ýḄº»m|¥¦+/ᑮº»xxC*/))voidmain(){clrscr();if(ReadDat()){primf("ᦪ7ᦻBIN.DATÅᡭþ 21\007-1);return;)StrOL();WriteDat();)intReadDat(void)(FILE*fp;inti=0;char*p;if((fp=fopen(nIN.DAT","rn))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i],' 22');if(p)*p=O;i++;)maxline=i;fclose(fp);return0;)voidWriteDat(void)(FILE*fp;inti;clrscr();fp=fopen("OUT6.DATV'wH); 23for(i=0;i 24",xx[i]);fprintf(fp,H%s 25",xx[i]);)fclose(fp);)ᣩᡂ᱐ÝÞßpCḄ[\/*ᙠÝÞßpCùàáâã(?ᐭᦻB¾äᨵ᪗°Ḅᙠ?;ᦻBC¾»²©*/voidStrOL(void)(inti,j;charword[21],yy[80],zz[80],*p;for(i=0;i 26{strcat(str,xx[i]+j+1);strcat(str,nM);xx[i][j]=W;)strcat(str,xx[i]);strcpy(xx[i],str);))▭ ὃ ☢ᵨਭਮ⚪5(id8ᦪ⚪)ᙠᦻin.datᨵ200!"ᦪ#$%!ᦪᙳᙠ1000'9999()*ᦪReadDat+,-200!ᦪ./ᑮᦪ1aa23ᑴ*ᦪjsSort(),ᐸ*ᦪḄ789:⌕<ᢥ%!ᦪḄ>?@ḄᜧBCDᓣᑡ#ᯠ>,HIJKᩩḄM10!ᦪNO.ᐭᦪ1bb#R>?@ḄᦪSTU#ᑣᢥWᐜḄᦪSCDYᑡᨬ>[ᵨ*ᦪWriteDat()\]Rbb^Hᑮᦻout.dato`:ᜐᳮM60125099901270258088ᜐᳮ>90126012702580885099cᑖef.ᙠᦻprogl.c2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDatm^Hᦪl*ᦪWriteDatḄᑁo#include 27FILE*in;inti;in=fopen("in.dat,',,,rn);for(i=0;i<200;i++)fscanf(in,u%d,",&aa[i]);fclose(in);)writeDat()(FILE*out;inti;clrscr();out=fopen(,'out.dat","w'');for(i=0;i<10;i++){printf(n%dn,bb[i]);fprintf(out,H%d 28';bb[i]);)fclose(out);)⚪6"ᦪᙠᦻin.datᨵ200!"ᦪ#$%!ᦪᙳᙠ1000'9999()*ᦪReadDat+,-200!ᦪ./ᑮᦪ1aa23ᑴ*ᦪjsSort(),ᐸ*ᦪḄ789:⌕<ᢥ%!ᦪḄ>?@ḄᜧBCDYᑡ#ᯠ>,HIJKᩩḄM10!ᦪNO.ᐭᦪ1b#R>?@ḄᦪSTU#ᑣᢥWᐜḄᦪSCDᓣᑡᨬ>[ᵨ*ᦪWriteDat\]Rbb^Hᑮᦻout.dat`:ᜐᳮM90125099601270258088ᜐᳮ>50998088702560129012pq:cᑖefrsH2gᦋij*ᦪmain()^+ᦪl*ᦪReadDatm^Hᦪl*ᦪWriteDatḄᑁo#include 29if(aa[i]%1000 30",i+l,bb[i]);fprintf(out,"vd 31”,bb[i]);)fclose(out);ਭ⚪7wid15]᪀yz{⚪||}~ᙠᦻIN.DAT.ᨵ100!├#%!├ᵫṹdmw4@|#mew10@|#ᓫdjw|#ᦪsiw|#jew|cᑖ1ᡂᐸ:=ᓫ*ᦪH*ᦪReadDat 9+,-100!├.ᐭ]᪀ᦪ1sell23ᑴ*ᦪSorlDat#ᐸ78⌕<:ᢥṹᜧᑮBCDᑡ# 32ṹT#ᑣᢥᜧᑮBCDᑡ#ᨬᑡ]R.ᐭ]᪀ᦪ1sell#ᨬ>[ᵨ*ᦪWriteDat\]R^HᑮᦻOUT6.DATcᑖef.ᙠᦻprog1.c2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDatm^Hᦪl*ᦪWriteDatḄᑁo#include 33fp=fopen("IN.DAT',,',rn);for(i=0;i<100;i++){fgets(str,80Jp);memcpy(sell[i].dm,str,4);memcpy(sell[i].mc,str4-4,10);memcpy(ch,str+14,4);ch[4]=0;sell[i].dj=atoi(ch);memcpy(ch,str+18,5);ch[5]=0;sell[i].sl=atoi(ch);sell[i].je=(long)sell[i].dj*sell[i].sl;)fclose(fp);voidWriteDat(void)(FILE*fp;inti;fp=fopen("OUT6.DAT”,W);for(i=0;i<100;i++){printf("%s%s%4d%5d%5d 34n,sell[i].dm,sen[i].mc,sell[i].dj,sell[i].sl,sell[i].je);fprintf(fp,,,%s%s%4d%5d%5d 35'\sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);)fclose(fp);ਭਮ⚪8(id83¡ᣚ⚪)*ᦪReadDat£¤ᦻENGIN+,}¥¦ᦻᦻ§#.ᐭᑮ¨ᦪ1xxt23ᑴ*ᦪencryptChar(),ᢥs©Ḅ¡ᐵ«¬ᦪ1xxḄᡠᨵCD¡#.ᐭᦪ1xxḄ¬®Ḅ@¯ #ᨬ>[ᵨ*ᦪWriteDat()\]Rxx^HᑮᦻPS1.DAT¡ᐵ«:f(p)=p*llmod256(p9ᦪ1°}!ḄASCHS#f(p)9>±ḄASCHS)#R>f(p)SB²U²32ᡈᜧ²130,ᑣ´µ¶#ᔲᑣ¸f(p)ᡠ¬®ḄCD¡cᑖef.ᙠᦻprogl.cW¹ᦪlᦻ./Ḅº»9:%DḄ¼½ᙳB²80!2gᦋij:*ᦪmainஹ+ᦪl*ᦪReadDat()m^Hᦪl*ᦪWriteDatḄᑁo#include 36intmaxline=O;/*ᦻ§Ḅ¿Dᦪ*/intReadDat(void);voidWriteDat(void);voidencryptChar(){inti,j;for(i=0;i 37\007");return;)encryptChar();WriteDat();)intReadDat(void)(FILE*fp;inti=0;unsignedchar*p;if((fp=fopen(neng.inM,uru))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i], 38,)tif(p)*p=O;i++t)maxline=i;fclose(fp);return0;)voidWriteDat(void)FILE*fp; 39inti;fp=fopen("psl.dat'V'w");for(i=0;i 40”,xx[i]);fprintf(fp,"%s 41",xx[i]);)fclose(fp);)u:voidencryptChar(){inti,j,k;for(i=0;i 42char*pf;for(i=0;i 43voidmain()(clrscr();if(ReadDat()){printfCᦪlᦻIN.DATµ8ᡭÃÄ 44\007n);return;)SortCharD();WriteDat();)intReadDat(void)(HLE*fp;inti=0;char*p;if((fp=fopen(',IN.DAT"t,r,,))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i]/ 45*);if(p)*p=O;i++t)maxline=i;fclose(fp);return0;)voidWriteDat(void)(FILE*fp;inti;fp=fopen(',OUT2.DAT,',uw,');for(i=0;i 46n,xx[iJ);fprintf(fp,n%s 47M,xx[i]);)fclose(fp);)⚪10(id68¡ᣚ⚪)*ᦪReadDat()£¤ᦻIN.DAT+,}¥¦ᦻᦻ§.ᐭᑮ¨ᦪ1xx#23ᑴ*ᦪConvertCharA(),ᐸ*ᦪḄ789:DÇᓫ@\¨ḄᡠᨵBᑏÐᦋᑏᡂ´Ð 48ḄÑ}!Ð#R9ÐZ,ᑣᦋᑏᡂÐaᜧᑏÐÇᜧᑏÐ#BᑏÐÇBᑏÐ#ᐸÒµ¶\rᜐᳮḄ¨ᢥDɱ.ᐭ¨ᦪ1xx#ᨬ>[ᵨ*ᦪwriteDat\]Rxx^HᑮᦻOUT1.DAT`:Wᦻ:Adb.Bcdzaabck.LLhj]R:Aec.Bdeabbcdl.LLikW¹ᦪlᦻ./Ḅº»9:%DḄ¼½ᙳB²80!#Ê᪗ÌÍmκcᑖef.ᙠᦻprogl.c2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDatm^Hᦪl*ᦪwriteDatḄᑁo#include 49\007H);return;)ConvertCharA();WriteDat();)intReadDat(void)(FILE*fp;inti=0; 50char*p;if((fp=fopen(,'IN.DAT",,,ru))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i], 51*)tif(p)*p=O;i++t)maxline=i;fclose(fp);return0;)voidWriteDat(void)(FILE*fp;inti;clrscr();fp=fopen(',OUTl.DATnt,wn);for(i=0;i 52”,xx[i]);fprintf(fp,"%s 53n,xxfi]);)fclose(fp);)ਮ⚪11(id93¨ÐÔ@⚪)fprogl.cḄ789:\s¨ḄᡠᨵÐᦋᑏᡂ´ÐḄÑ}!Ð#ÐzᦋᑏᡂÐa⌕<ᜧᑏÐÇᜧᑏÐ#BᑏÐÇBᑏÐ#ᐸÕµÖᦋ¶2ὃ×3ᑏ*ᦪchg(char*s)£¤f⌕<#ᨬ>[ᵨ*ᦪreadwriteDAT()\]R^Hᑮᦻbe1.out`:s¨WᨵḄᑁoÇ:Mn.l23Zxy,ᑣ[ᵨ´*ᦪ>#]RÇ:No.l23Ayzopq:cᑖef.ᙠᦻprogl.cᦻ2gᦋij*ᦪmain()m^Hᦪl*ᦪreadwriteDATḄᑁo#include 54if(*s==,z,IH:s=="Z,){*s-=25;s++;}elseif(*s>=*a,&&*s<=,y'){*s+=1;s++;}elseif(*s>=*A,&&*s<=,Y,){*s+=1;s++;}elses++;)main()(chara[N];clrscr();printf(''Enterastring:");gets(a);printf(nTheoriginalstringis:")tputs(a);chg(a);printf(nThestringaftermodified:");puts(a);readwriteDAT();)voidreadwriteDAT()(inti;chara[N];FILE*rf,*wf;rf=fopen("bcl.in","rH);wf=fopenCbcLout'1,Hwn);for(i=0;i<50;i++){fscanf(rf,"vs”,a);chgবtfprintf(wf,u%s 55",a);)fclose(rf);fclose(wf);)ਭ⚪12(id78]᪀yÙ⚪⚪)r~ᙠᦻIN.DAT.ᨵ100!├#%!├Úṹdm(4@)#me(10@)#ᓫdj()#ᦪsi()#je()cᑖ1ᡂᐸ:=ᓫ*ᦪH*ᦪReadDat9+,-100!├.ᐭ]᪀ᦪ1sell23ᑴ*ᦪSorlDat(),ᐸ78⌕<:ᢥBᑮᜧCDᑡ#TU#ᑣᢥBᑮᜧCDᑡ#ᨬᑡ]R.ᐭ]᪀ᦪ1sell#ᨬ>[ᵨ*ᦪWriteDat\]R^HᑮᦻOUT5.DATcᑖef.ᙠᦻprogl.c2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDat()m^Hᦪl*ᦪWriteDatḄᑁo 56#include 57memcpy(sell[i].dm,str,4);memcpy(sell[i].mc,str+4,10);memcpy(ch,str+14,4);ch[4]=0;sell[i].dj=atoi(ch);memcpy(ch,str+18,5);ch[5]=0;sell[i].sl=atoi(ch);sell[i].je=(long)sell[i].dj*sell[i].sl;)fclose(fp);)voidWriteDat()(HLE*fp;inti;fp=fopen(',OUT5.DAT',t,w");for(i=0;i<100;i++){printf(n%s%s%4d%5d%5d 58,',sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);fprintf(fpj%s%s%4d%5d%5d 59';sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);)fclose(fp);)⚪13(id81]᪀yÙ⚪)id81⚪ᢥBᑮᜧCDᑡr~ᙠᦻIN.DAT.ᨵ100!├#%!├Úṹdm(4@)#me(10@)#ᓫdj()#ᦪsi()#je()cᑖ1ᡂᐸ:=ᓫ*ᦪH*ᦪReadDat9+,-100!├.ᐭ]᪀ᦪ1sell23ᑴ*ᦪSortDat,ᐸ78⌕<:ᢥṹBᑮᜧCDᑡ#ṹTU#ᑣᢥᜧᑮBCDᑡ#ᨬᑡ]R.ᐭ]᪀ᦪ1sell#ᨬ>[ᵨ*ᦪWriteDat\]R^HᑮᦻOUT9.DATcᑖef.ᙠᦻprogl.c2gᦋij*ᦪmain()^+ᦪl*ᦪReadDat()m^Hᦪl*ᦪWriteDalḄᑁo#include 60intdj;/*ᓫ*/intsi;/*ᦪ*/longje;/**/}PRO;PROsell[MAX];voidReadDat();voidWriteDat();voidSortDat(){intij;PROxy;for(i=0;i<99;i++)for(j=i+l;j<100;j++)if(strcmp(sell[i].dm,sell[j].dm)>Ollstrcmp(sell[i].dm,sell[j].dm)==O&&sell[i].je 61voidWriteDat()(FILE*fp;inti;fp=fopen(',OUT9.DAT',,1(w");fdr(i=0;i<100;i++){printf(H%s%s%4d%5d%5d 62",sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);fprintf(fp,H%s%s%4d%5d%5d 63"#sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);)fclose(fp);}ਮ⚪14(id151ᦪÜ⚪)r~ᦪlᦻIN.DAT.ᨵ200!Å@ᦪ#r[ᵨ+*ᦪreadDat\-Ýᦪ.ᐭᦪ1a#2ὃ×3ᑴ}*ᦪjsVal(),ᐸ789:NOᦪ1a,H}!Å@ᦪ#R´Å@ᦪÞßᜧ²´Å@ᦪ>Ḅ!ᦪ$´ᦪ9ᦪ(´Å@ᦪ>µI!ᦪ#ᑣµÜ)#ᑣÜHIJKᩩḄ!ᦪent\-ÝÅ@ᦪᢥBᑮᜧḄÈ.ᐭᦪ1b#ᨬ>[ᵨᑏ*ᦪwriteDat()\]Rentáᦪ1bᔠᩩḄÅ@ᦪ^HᑮOUT.DATᦻpq:cᑖef.ᙠᦻprogLcfr©ãᦪ1:a[200],b[200],r©ã¶:ent2gᦋiᦪlᦻIN.DATḄäåᦪlஹj*ᦪmainஹ+*ᦪreadDatmᑏ*ᦪwriteDatḄᑁo#include 64FILE*fp;fp=fopen(',in.datM,nrn);for(i=0;i 65”,ent);for(i=0;i 66");writeDat();writeDatO(FILE*fp;inti;fp=fopenC'out.dat",nwu);fprintf(fp,"%d 67",ent);for(i=0;i 68n,b[ij);fclose(fp);)⚪15(id150ᦪᔜ@ᦪÙ⚪)r~ᦪlᦻIN.DAT.ᨵ200!Å@ᦪ#r[ᵨ+*ᦪreadDat\-Ýᦪ.ᐭᦪ1a#2ὃ×3ᑴ}*ᦪjsVal(),ᐸ789:•!Å@ᦪḄᓟ@ᦪ ḄSB²U²é@ᦪ ḄS#é@ᦪ ḄSB²U²ᓝ@ᦪ ḄS#áᓝ@ᦪ ḄSB²U²!@ᦪ ḄS#$WÅ@ᦪ9Ꮤᦪ#ᑣÜHIJKᩩḄ!ᦪcm\-ÝÅ@ᦪᢥBᑮᜧḄÈ.ᐭᦪ1b#ᨬ>[ᵨᑏ*ᦪwriteDatO\]Rentáᦪ1bᔠᩩḄÅ@ᦪ^HᑮOUT.DATᦻpq:cᑖef.ᙠᦻprogl.cfr©ãᦪ1:a[200],b[200],r©ã¶:ent2gᦋiᦪlᦻIN.DATḄäåᦪlஹj*ᦪmainஹ+*ᦪreadDatmᑏ*ᦪwriteDat()Ḅᑁo#include 69intqw,bw,sw,gw;for(i=0;i 70”,ent);for(i=0;i 71M);writeDat();}writeDat()(FILE*fp;inti;fp=fopen(nout.dat'r,nwu);fprintf(fp,n%d 72",ent);for(i=0;i 73n,b[ij);fclose(fp);)ਭ⚪16(id23¡ᣚ⚪)*ᦪReadDat()£¤ᦻIN.DAT+,}¥¦ᦻᦻ§.ᐭᑮ¨ᦪ1xx#23ᑴ*ᦪSlrCharJRO#ᐸ*ᦪḄ789:DÇᓫ@\¨ᡠᨵḄASCIISìÔ4@# 74ᯠ>\ìÔ>ḄASCIISíî WḄASCIIS#ᑮ±Ḅ.ᐭW¨¬®Ḅ@¯ ᨬ>\rᜐᳮḄ¨ᢥDɱ.ᐭ¨ᦪ1xx#ᨬ>[ᵨ*ᦪwriteDat\]Rxx^HᑮᦻOUT8.DATW¹ᦪlᦻ./Ḅº»9:%DḄ¼½ᙳB²80!#Ê᪗ÌÍmκcᑖef.ᙠᦻprog1.c2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDat()m^Hᦪl*ᦪwriteDat()Ḅᑁo#include 75\007n);return;)StrCharJR();WriteDatO;intReadDat(void)(FILE*fp;inti=0;char*p;if((fp=fopen(nIN.DAT","r"))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i],, 76');if(p)*p=O; 77i++tmaxline=i;fclose(fp);return0;)voidWriteDat(void)(FILE*fp;inti;clrscr();fp=fopen("OUT8.DAT"/w");for(i=0;i 78",xx[i]);fprintf(fp,"vs 79",xx[i]);)fclose(fp);)ਮ⚪17(ïð¡ᣚ⚪)*ᦪREADDAT()£¤ᦻIN.DAT+,•¥¦ᦻᦻ§.ᐭᑮ¨ᦪ1XX;23ᑴ*ᦪCHA(),ᐸ*ᦪ789:DÇᓫ@\¨Ḅò}!ḄASCHSîòu!ḄASCHS#ᑮò}!ïð#òu!ḄASCIISîò?!ḄASCIIS#ᑮòu!±#NKóô}õᜐᳮᑮᨬ>òu!#ᨬ>}!ḄASCIISîWò}!ḄASCIIS#ᑮᨬ>}!±Ḅ#ᑮḄ±ᑖö./ᙠW¨¬®Ḅ@¯ ᨬ>\rᜐᳮḄ¨⌮ø>ᢥDɱ.ᐭ¨ᦪ1XX,ᨬ>[ᵨ*ᦪWRITEDAT0\]RXX^HᑮᦻOUT9.DAT.W¹ᦪlᦻ./Ḅº»9:%DḄ¼½ᙳB²80!#Ê᪗ÌÍmκ.pq:cᑖefrsH2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDat()m^Hᦪl*ᦪwriteDat()Ḅᑁo#include 80charch;for(i=0;i 81\007");return;}ChA();WriteDat();)intReadDat(void)(FILE*fp;inti=0;char*p;if((fp=fopen(nIN.DAT",urn))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i],' 82');if(p)*P=0;i++t)maxline=i;fclose(fp);return0;}voidWriteDat(void)(FILE*fp;inti;clrscr();fp=fopen(MOUT9.DATn,nw"); 83for(i=0;i 84u,xx[i]);fprintf(fp,n%s 85M,xx[i]);)fclose(fp);)ਮ⚪18(idl⚪)*ᦪReadDat£¤ᦻENGIN+,}¥¦ᦻᦻ§#.ᐭᑮ¨ᦪ1xxt23ᑴ*ᦪencryptChar(),ᢥs©Ḅ¡ᐵ«¬ᦪ1xxḄᡠᨵCD¡#.ᐭᦪ1xxḄ¬®Ḅ@¯ #ᨬ>[ᵨ*ᦪWriteDat()\]Rxx^HᑮᦻPSI0.DAT¡ᐵ«:f(p)=p*llmod256(p9ᦪ1°}!ḄASCIIS#f(p)9>±ḄASCIIS)#RWḄASCIIS9Ꮤᦪᡈ>f(p)SB²U²32,ᑣ´µ¶#ᔲᑣ¸f(p)ᡠ¬®ḄCD¡cᑖef.ᙠᦻprogl.cW¹ᦪlᦻ./Ḅº»9:%DḄ¼½ᙳB²80!2gᦋij*ᦪmainஹ+ᦪl*ᦪReadDat()m^Hᦪl*ᦪWriteDat()Ḅᑁo#include 86\007n);return;encryptChar(); 87WriteDat();iniReadDat(void)(HLE*fp;inti=0;unsignedchar*p;if((fp=fopen(neng.inn,uru))==NULL)return1;while(fgets(xx[i],80,fp)!=NULL){p=strchr(xx[i]/ 88,);if(p)*p=O;i++t)maxline=i;fclose(fp);return0;}voidWriteDat(void)(FILE*fp;inti;fp=fopen("psl0.dat","wH);for(i=0;i 89",xx[i]);fprintf(fp,M%s 90n,xx[iJ);)fclose(fp);}K⚪ûᨵüý#þÿ⚪8⚪19(id144ᓫᦪ⚪)ᑏᦪfindStr(char*str,char*substr),ᦪ2ḄᙠḄᦪ!Ꮇ#$ᐭḄ"asdasasdfgasdaszx67asdmklo",“as",ᦪ'()*6ᦪReadWrite+,ᦻ.in.dat/01!23ᵨᦪfindStr!ᨬ6789$ᑮᦻ.oul.dat;<=>ᑖ@ABCᙠᦻ.progLcDEᦋGHᦪmain()IᐸKᦪḄLMᑁO!PᙠᦪfindStrḄQRSTᐭUᑏḄVWXY#include 91intfindStr(char*str,char*substr){intn=0;char*p,*r;while(*str){p=str;r=substr;while(*r)if(*r==*p){r++;p++;elsebreak;if(*r#(y)n++;str++;)returnn;main()(charstr[81],substr[3];intn;clrscr();printf("$ᐭ]^;gets(str);printf("$ᐭ:“)agets(substr);puts(str);puts(substr);n=findStr(str,substr);printf(nn=%d 92",n);ReadWrite();)ReadWrite()(charstrl81],substr[3J,ch;intn,len,i=0;FILE*rf,*wf;rf=fopen(uin.dat';T1);wf=fopen("out.dat","wu);while(i<25){ 93fgets(str,80,rf);fgets(substr,10,rf)alen=strlen(substr)-1;ch=substr[len];if(ch== 94'IIch==Oxla)substr[len]=0;n=findStr(str,substr);fprintf(wf,u%d 95",n);i++a)fclose(rf);fclose(wf);)bcd=intfindStr(char*str,char*substr){intij,lenl,len2,cnt=0,flag;lenl=strlen(str);len2=strlen(substr);for(i=0;i 96(ᐸFibonacciᦪᑡF(n)Ḅ#o=F(0)=0,F(l)=lF(n)=F(n-1)+F(n-2)ᨬ63ᵨᦪwriteDat/050ᦪpt,ᑖqr89s789$ᑮᦻ.out.dat=tt=1000u!ᦪ)=1597>ᑖ@ABCᙠᦻ.progl.cDEᦋGHᦪmain()IᑏᦪwriteDatḄᑁO#include 97",n,jsValue(n));writeDat();)writeDat()(FILE*in,*out;inti,n,s;in=fopen(nin.dat,,,,,rM);out=fopen(,'out.dat',,"w,');for(i=0;i<50;i++){fscanf(in,H%d",&n);s=jsValue(n);printf("%d 98",s);fprintf(out,n%d 99n,s);fclose(in);fclose(out); 100⚪21(id53vwxcjxA⚪)yᑡABprogl.cḄhi*=ᑭᵨ{yᡠ}Ḅ~ᓫvwxcjxA=cos(x)-x=0Ḅ+᪷Xn+l=cos(Xn)vwy=প0XI)0.0a(2)X0=X1,7X1Ḅ)X0a(3)Xl=cos(X0),jḄXIa(4)VX0-X1Ḅ)ml0.000001,(5),ᔲᑣ(2)a(5)ᡠjXI*xAcos(X)-X=0Ḅ+᪷!ᦪ)'(DᑏᦪcountValue()+ABḄ⌕j!ᨬ63ᵨᦪwriteDat()789$ᑮᦻ.OUT17.DAT>ᑖ@ABDEᦋGHᦪmainI$ᦪpᦪwriteDatḄᑁO#include 101H,cos(countValue())-countValue());writeDat();)writeDat()(FILE*wf;wf=fopen(nOUT17.DAT',"wu);fprintf(wf,"%f 102",countValue());fclose(wf)a 103ਭ⚪22(id39x᪷⚪)DᑏᦪcountValue(),KḄhi*=jn{ᑁ(ᒹRn)ui37◀ḄᡠᨵᯠᦪIḄx᪷s,2ᦪ)'(!ᨬ689s$ᑮᦻ.out.datVn1000u,ᦪ)¡=s=l53.909064»>ᑖ@ABCᙠᦻ.prog1.cDEᦋGHᦪmainI$ᐭ$ᦪpᦪprogReadWriteḄᑁO#include 104”,countValue(1000));progReadWrite();)progReadWrite()(FILE*fp,*wf;inti,n;floats;fp=fopen(Min.datn,"rH);if(fp==NULL){printf("ᦪpᦻ.in.datCᙠ!”)areturn;)wf=fopen(',out.dat",,'w");for(i=0;i<10;i++){fscanf(fp,n%d 105n,&n);s=countValue(n);fprintf(wf,H%f 106",s);)fclose(fp);fclose(wf)a 107ਭ⚪23(+ᦪ¥¦⚪)§ᙠᦻ.in.datCᨵN(ᦪ<200)+ᦪ!ᦪreaddat/0¨N+ᦪ2Cᐭᦪ©xxDᑴᦪcalvalue!ᐸhi⌕j=1ஹj¨N+ᦪḄᙳ)avera2ஹᑖqj¨N+ᦪḄᦪ>ᑖIsumint{mᦪ>ᑖIsumdec,ᨬ63ᵨᦪwritedat()7ᡠjḄ89$ᑮᦻ.out.dat;<=>ᑖ@ABDEᦋGHᦪmainஹ/ᦪpᦪreaddatI$ᦪpᦪwritedatḄᑁO#include 108");return;)Calvalue();printf("ᦻ.IN.DATᐳᨵ+ᦪ=%d 109",N);printf("ᙳ)=%.21f 110",aver); 111printf("ᦪ>ᑖId%.21f 112”,sumint);printf("mᦪ>ᑖI=%.21f 113",sumdec);WriteDat();system(upausen);intReadDat(void)(HLE*fp;inti=0;if<(fp=fopen("in.dat",nrn))==NULL)return1;while(!feof(fp)){fscanf(fp,u%da\&xx[i++]);}fclose(fp);return0;)voidWriteDat(void)(FILE*fp;fp=fopen(nOUT.DAT","w");fprintf(fp,"%.21f 114%.21f 115%.21f 116",aver,sumint,sumdec);fclose(fp);)ਮ⚪24(id16·ᐰxᦪ⚪)yᑡABprogl.cḄhi*=ᙠe¹ᦪ(100º999)»¼ᔠᩩ.Ḅᦪ2¿,mᑮᜧCᐭᦪ©aKÀ*·ᐰxᦪ!Á*1¹ᦪÂ!144ஹ676ÃDᑴᦪ+Ähi!ÅÆᩩ.ḄᦪḄᦪÇÈᡠᑴḄᦪ'(ᨬ63ᵨᦪwriteDat()789$ᑮᦻ.out.datDEᦋGHᦪmainIᑏᦪwriteDalḄᑁO#include 117if(hun==tenllhun==datallten==data)bb[k++]=i;)j++;}}returnk;main()(intb[20],num;num=jsValue(b);writeDat(num,b);)writeDat(intnum,intb[])(FILE*out;inti;out=fopen(,'out.dat,,,',w");printf("Éd 118”,num);fprintf(out,M%d 119n,num);for(i=0;i 120,,,bfi]);fprintf(out,',%d 121",b[i]);}fclose(out);)bc=intjsValue(intbb[J){intij,cnt=O,bw,sw,gw;for(i=100;i<=999;i++){bw=i/100;sw=i%100/10;gw=i%10;for(j=10;j*j<=i;j++)if(i==j*j&&(bw==swllsw==gwllgw==bw))bbfcnt++]=i;)returnent;)ਭਮ⚪25((ᦻᦪ⚪)yᑡABḄhi*=»¼2$11º999ÊḄᦪm,KÅÆm,m2Im3ᙳ(ᦻᦪᡠË(ᦻᦪ*ᢣᐸᔜ¹ᦪÎÏÐḄᦪ!121,676,94249ÃÅÆÑÒᩩ.Ḅᦪm=ll,m2=121,m3=1331Ḇ(ᦻᦪDᑴᦪintsvalue(longm)+Ähi,9*(ᦻᦪ!ᑣᦪ'(1,Ôᑣ'(0ᨬ6789$ᑮᦻ.ut.dat 122;<=>ᑖ@ABDEᦋGHᦪmainḄᑁO#include 123",m,m*m,m*m*m);fprintf(out,,,m=%41d,m*m=%61d,m*m*m=%81d 124”,m,m*m,m*m*m);))fclose(out);system("pause");}ᡈὅÛ☢Ḅbc=intjsValue(longn){longints=0,k;k=n;while(k){s=s*10+k%10;k/=10;}if(s==n)return1;if(s!=n)return0;)$89: 125m=1l,m*m=121,m*m*m=1331m=101,m*m=10201,m*m*m=1030301m==12321,m*m*m=1367631ਭ⚪26(id37ᦪ¥¦⚪)§ᙠᦻ.IN.DATCᨵVW(ᦪீ200)f¹ᦪḄÞᦪ!ᦪReadDat/0¨VWÞᦪ2Cᐭᦪ©xxDᑴᦪCalValueO,ᐸhi⌕j=1ஹj¨ᦻ.ᐳᨵ¯°ÞᦪtotNuma2ஹj¨ßᦪÏà1¹6!áâḄᦪ*ᏔᦪḄᦪḄᦪtotCnt,{ÅÆÄᩩ.Ḅ¨ßᦪ(ÏàäḄ))Ḅ¦åᙳ)totPjz,ᨬ63ᵨᦪwriteDat()7ᡠjḄ89$ᑮᦻ.OUT.DAT>ᑖ@ABCᙠᦻ.prog1.cDEᦋGHᦪmainஹ/ᦪReadDatIᑏᦪwriteDatḄᑁO#include 126");return; 127CalValueO;printfæ"ᦻ.IN.DATᐳᨵÞᦪd%dj 128”,totNum;printfæ"ᔠᩩ.ḄÞᦪḄᦪ=%d 129”,totCnt;printfæ"ᙳ)=%.2f 130otPjz;writeDat ;intReadDat(void)(FILE*fp;inti=0;if((fp=fopen(,,IN.DAT"a,r"))==NULL)return1;while(!feof(fp)){fscanf(fp,M%d,",&xx[i++]);)fclose(fp);return0;)voidwriteDat(void)(FILE*fp;fp=fopen("OUT.DAT","wH);fprintf(fp,H%d 131%d 132%6.2f 133n,totNum,totCnt,totPjz);fclose(fp);}ਭ⚪27(id57ᦪᔜ¹ᦪ¥¦⚪)§ᦪpᦻ.in.datCᨵ300f¹ᦪ!23ᵨ/ᦪReadDat7¨ßᦪCᐭᦪ©a!DᑴᦪjsValue!ᐸhi*=jᓟ¹ᦪÑḄᦪéê¹ᦪÑḄᦪéÛ¹ᦪÑḄᦪé¹ᦪÑḄᦪᜧlëḄᦪent,ì7ᡠᨵÅÆÄᩩ.Ḅf¹ᦪ¿Cᐭᦪ©b!ᯠ6ᦪ©bḄf¹ᦪᢥ,mᑮᜧḄîBïB!ᨬ63ᵨᑏᦪwriteDat789$ᑮout.datᦻ.=9123,9-1-2-3>0,ᑣᦪÅÆᩩ.Cᐭᦪ©b,sᦪcnt=cnt+l9812,9-8-1-2>0,ᑣᦪÅÆᩩ.ñᶍ>ᑖ@ABCᙠᦻ.progl.cAB#oᦪ©:a[300],b[300],#oóô=entDEᦋGH:ᦪmainஹ/ᦪReadDatIᑏᦪwriteDat()ḄᑁO#include 134{inti,j,qw,bw,sw,gw;for(i=0;i<300;i++){qw=a[i]/l000;bw=a[i]/100%10;sw=a[i]%100/10;gw=a[i]%10;if(qw-bw-sw-gw>0)b[cnt++]=a[i];)for(i=0;i 135",cnt);for(i=0;i 136,\i,b[i]);)readDat()(FILE*fp;inti;fp=fopen(,'in.dat,,,,'ru);for(i=0;i<300;i++)fscanf(fp,"%d,H,&a[i]);fclose(fp);}writeDat()(FILE*fp;inti;fp=fopen("out.dat",,,wn);fprintf(fp,"%d 137",cnt);for(i=0;i 138,,»b[i]);fclose(fp);)ਭ⚪28(id138ᦪᔜ¹ᡭᦣ©ᔠ¥¦⚪)§ᦪpᦻ.IN.DATCᨵ200f¹ᦪ!23ᵨ/ᦪreadDat()7¨ßᦪCᐭᦪ©a!Dὃâᑴ--ᦪjsVal(),ᐸhi*=7ᓟ¹ᦪIÛ¹ᦪø©ᡂḄÛ¹ᦪ 139ab(ᓝ¹ᦪḄᓝ¹ᦪ*]f¹ᦪḄᓟ¹ᦪ!ᓝ¹ᦪḄ¹ᦪ*]f¹ᦪḄᓝ¹ᦪ)!{7¹ᦪIê¹ᦪ©ᡂ•Ḅᓝ¹ᦪcd(ᓝ¹ᦪḄᓝ¹ᦪ*]f¹ᦪḄ¹ᦪ!ᓝ¹ᦪḄ¹ᦪ*]f¹ᦪḄê¹ᦪ)!9©ᡂḄ1ᓝ¹ᦪab-cd>=0sab-cd<=10s1ᦪᙳ*ᦪ!u1ᦪḄᓝ¹ᦪᙳë!ᑣýÅÆÄᩩ.Ḅf¹ᦪᢥ,ᜧᑮmḄîBCᐭᦪ©b!2⌕¦ÅÆÑÒᩩ.Ḅf¹ᦪḄᦪentᨬ6mainᦪ3ᵨᑏᦪwriteDat()789ent{ᦪ©bᔠᩩ.Ḅf¹ᦪ$ᑮOUT.DATᦻ.;<=>ᑖ@ABCᙠᦻ.progl.cAB#oᦪ©:a[200],b[200],#oóô=entDEᦋGᦪpᦻ.IN.DATḄLMᦪp•ஹHᦪmainஹ/ᦪreadDatIᑏᦪwriteDatḄᑁO#include 140”,ent); 141for(i=0;i 142n);writeDat();)writeDat()(FILE*fp;inti;fp=fopenCouLdat","wu);fprintf(fp,"%d 143",ent);for(i=0;i 144",b[i]);fclose(fp);}ਭ⚪29(id139ᦪᔜ¹ᡭᦣ©ᔠ¥¦⚪)§ᦪpᦻ.IN.DATCᨵ200f¹ᦪ!23ᵨ/ᦪreadDat()7¨ßᦪCᐭᦪ©a!DὃâᑴᦪjsVal(),ᐸhi*=7ᓟ¹ᦪIᓝ¹ᦪø©ᡂḄᓝ¹ᦪab(ᓝ¹ᦪḄᓝ¹ᦪ*]f¹ᦪḄᓟ¹ᦪ!ᓝ¹ᦪḄ¹ᦪ*]f¹ᦪḄᓝ¹ᦪ)!{7¹ᦪIê¹ᦪ©ᡂḄᓝ¹ᦪcd(ᓝ¹ᦪḄᓝ¹ᦪ*]f¹ᦪḄ¹ᦪ!ᓝ¹ᦪḄ¹ᦪ*]f¹ᦪḄê¹ᦪ)!9©ᡂḄ1ᓝ¹ᦪab-cd>=10sab-cd<=20s1ᦪᙳ*Ꮤᦪ!u1ᦪḄᓝ¹ᦪᙳë!ᑣýÅÆÄᩩ.Ḅf¹ᦪᢥ,ᜧᑮmḄîBCᐭᦪ©b!2⌕¦ÅÆÑÒᩩ.Ḅf¹ᦪḄᦪentoᨬ6mainᦪ3ᵨᑏᦪwriteDat()789ent{ᦪ©bᔠᩩ.Ḅf¹ᦪ$ᑮOUT.DATᦻ.;<=>ᑖ@ABCᙠᦻ.progLcAB#oᦪ©:a[200],b[200],#oóô=entDEᦋGᦪpᦻ.IN.DATḄLMᦪpஹHᦪmainஹ/ᦪreadDatIᑏᦪwriteDatḄᑁO#include 145for(j=i+l;j 146”,ent);for(i=0;i 147M);writeDat();writeDat()(FILE*fp;inti;fp=fopen(nout.datM,"w',);fprintf(fp,H%d 148",ent);for(i=0;i 149n,b[i]);fclose(fp);)⚪30(id152ᦪB⚪)§ᦪpᦻ.IN.DATCᨵ200f¹ᦪ!23ᵨ/ᦪreadDat7¨ßᦪCᐭᦪ©a!DὃâᑴᦪjsVal(),ᐸhi*=¿,ᦪ©a0f¹ᦪ!9f¹ᦪþÿ ᦪḄᦪᦪᏔᦪ(ᦪᦪᑣ)ᑣᩩḄᦪentᦪᢥ ᑮᜧḄ#$%ᐭᦪ'b(ᨬ*ᵨᑏ-ᦪwriteDat()./ent0ᦪ'b(1ᔠᩩḄᦪ3ᑮOUT.DATᦻ(6789ᑖ;<$%ᙠᦻprogl.c(<$(>?@ᦪ'8a[200],b[200J,>?@AB8entCDᦋFᦪGᦻIN.DAT(ḄHIᦪGஹK-ᦪmainஹL-ᦪreadDatMᑏ-ᦪwriteDat()ḄᑁO#include 150#defineMAX200inta[MAX],b[MAX],ent=0;voidjsValO{intij,flag;for(i=0;i 151”,ent);for(i=0;i 152M);writeDat();writeDat()(FILE*fp;inti;fp=fopenC'out.dat","w");fprintf(fp,n%d 153u,ent);for(i=0;i 154",b[i]);fclose(fp); 155ਭ⚪S31(TUid17.᪀WXY⚪)>ZᙠᦻIN,DAT(%ᨵ100\]├_`ab\]├_`aᵫ\]dṹdm(f1g4)\]hime(f1g10)ᓫkdj(g)ᦪBsi(g)mnje(og)9ᑖ'ᡂᐸ(8mn=ᓫk*ᦪBYt-ᦪReadDat()Lu100├_`a%ᐭ.᪀ᦪ'sell(Cvᑴ-ᦪSortDatᐸxy⌕{8ᢥmnᜧᑮ |}ᑡmnᑣᢥ\]dṹᜧᑮ |}ᑡᨬᑡ./%ᐭ.᪀ᦪ'sell(ᨬ*ᵨ-ᦪWriteDatO./3ᑮᦻOUT4.DAT(9ᑖ;<$%ᙠᦻprogl.c(CDᦋFK-ᦪmain()ஹLᦪG-ᦪReadDat()M3ᦪG-ᦪWriteDatOḄᑁO#include 156voidReadDat()(FILE*fp;charstr[80],ch[U];inti;fp=fopen("IN.DAT",ur,');for(i=0;i 157",sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);fprintf(fp,n%s%s%4d%5d%5d 158M,sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);)fclose(fp);)ਮ⚪S32(TUid79.᪀WXY⚪)>ZᙠᦻIN.DAT(%ᨵ100\]├_`ab\]├_`aᵫ\]dṹdm(f1g4)\]hime(f1g10)ᓫkdj(g)ᦪBsi(g)mnje(og)9ᑖ'ᡂᐸ(8mn=ᓫk*ᦪBYt-ᦪReadDatLu100├_`a%ᐭ.᪀ᦪ'sell(Cvᑴ-ᦪSorlDat(),ᐸxy⌕{8ᢥ\]hiᜧᑮ |}ᑡ\]hiᑣᢥmn ᑮᜧ|}ᑡᨬᑡ./%ᐭ.᪀ᦪ'sell( ᨬ*ᵨ-ᦪWriteDat./3ᑮᦻOUT7.DAT(9ᑖ;<$%ᙠᦻprogl.c(CDᦋFK-ᦪmainஹLᦪG-ᦪReadDat()M3ᦪG-ᦪWriteDat()ḄᑁO 159#include 160memcpy(sell[i].dm,str,4);memcpy(sell[i].mc,str+4,10);memcpy(ch,str+14,4);ch[4]=0;sell[i].dj=atoi(ch);memcpy(ch,str+18,5);ch[5]=0;sell[i].sl=atoi(ch);sell[i].je=(long)sell[i].dj*sell[i].sl;)fclose(fp);)voidWriteDat()(HLE*fp;inti;fp=fopen(',OUT7.DAT',,w");for(i=0;i<100;i++){printf(n%s%s%4d%5d%5d 161H,sell[i].dm,seU[i].mc,sell[i].dj,sell[i].sl,sell[i].je);fprintf(fp,H%s%s%4d%5d%5d 162H,sell[i].dm,sell[i].mc,sell[i].dj,sell[i].sl,sell[i].je);)fclose(fp);)ਭ⚪S33(TUid61XY⚪)Cvᑴ-ᦪReadDatᦻIN.DAT(Lu1000ᓝ|ᑴᦪᑮᦪ'xx(Cvᑴ-ᦪComputeᑖYxx(ᏔᦪḄᦪeven,ᦪḄᙳave1,ᏔᦪḄᙳave20totfcḄᨬ*ᵨ-ᦪWriteDat./3ᑮOUT.DATᦻ(YḄ8N2totfc=l/NE(xx[i]-ave2)i=lNᏔᦪḄᦪxx[i]Ꮤᦪave2ᏔᦪḄᙳᦪGᦻ%Ḅ8b}%10ᦪᵨ⌹◞¡(bᦪᙳᜧ0 2000)9ᑖ;<$%ᙠᦻprogl.c(CDᦋFK-ᦪmainM3ᦪG-ᦪwriteDatḄᑁO#include 163voidWriteDat(void);intReadDat(void){inti;FILE*fp;if((fp=fopen(,,IN.DAT,(,"ru))==NULL)return1;/*********vᑴ-ᦪRcadDat()Ḅ9ᑖ************/for(i=0;i 164");}fclose(fp);return0;)voidCompute(void){inti,yy[MAX];for(i=0;i 165");return;Compute();printf(MOVEN=%d 166AVE1=%f 167AVER2=%f 168TOTFC=%f 169",even,avel,ave2,totfc); 170WriteDat();voidWriteDat(void)(HLE*fp;inti;fp=fopen("OUT.DAT",uwH);fprintf(fp,,,%d 171%f 172%f 173%f 174",even,avehave2,totfc);fclose(fp);)ਭਮ⚪S34(TUid73,102¤ᦪ⚪)TUid102⚪¥¦§{¤ᦪisPrime()-ᦪ<$progl.cḄxy8⌱100©1000ªᑁᡠᨵᦪf¬ᓝᦪfªM10◀ᡠt¯ᦪា±ᦪfḄ¤ᦪ(293)Y3©²¤ᦪḄᦪent0¤ᦪḄMsumCὃ´vᑏ-ᦪcountValue()<$⌕{ᨬ*ᵨ-ᦪwriteDAT./entMsum3ᑮᦻbclO.out(6789ᑖ;<$%ᙠᦻprogl.c(CDᦋFK-ᦪmain()M3ᦪG-ᦪwriteDAT()ḄᑁO#include