二级C语言11年参考答案.docx
《二级C语言11年参考答案.docx》由会员分享,可在线阅读,更多相关《二级C语言11年参考答案.docx(23页珍藏版)》请在冰豆网上搜索。
二级C语言11年参考答案
参考答案
一、程序填空题
1、
(1)b[k]
(2)N/2(3)<
2、
(1)[N]
(2)i(3)i+1
3、
(1)j++
(2)s[i]=t1[i](3)j
4、
(2)t[i][j](3)t[j][i]
5、
(1)t=i
(2)i(3)0
6、
(1)tt
(2)tt.score[i](3)std
7、
(1)sum=0
(2)t[i][i](3)1
8、
(1)0
(2)x[i]/N(3)j++
9、
(1)x[i]/N
(2)j++(3)i++
10、
(1)s/N
(2)j++(3)-1
11、
(1)1
(2)j++(3)j
12、
(1)M
(2)<(3)k
13、
(1)std[i].year
(2)std[i](3)n
14、
(2)i(3)a[p+i]
15、
(1)FILE*
(2)fp(3)ch
16、
(1)a[0][i]
(2)<(3)x,y
17、
(1)s[i]
(2)'9'(3)*t=n
18、
(1)a[i]
(2)a[j](3)a[j]
19、
(1)j
(2)k(3)p
20、
(1)i++
(2)m(3)m
21、
(1)a[i]%2
(2)a[j](3)j
22、
(2)||(3)1
23、
(1)'0'
(2)s++(3)ctod(a)+ctod(b)
24、
(2)s[k](3)c
25、
(1)ss[i]
(2)n+j(3)1
26、
(1)N
(2)N-1(3)0
27、
(1)double
(2)f1(3)f2
28、
(1)pb
(2)p->data(3)p->next
29、
(1)i+1
(2)k=j(3)t
30、
(2)m%10(3)m/10
31、
(1)&&
(2)0(3)s[j]
32、
(1)i%5
(2)\n(3)a[i]
33、
(2)break(3)n
34、
(1)char
(2)ch<='9'(3)'0'
35、
(2)len(3)*n=len
36、
(1)k
(2)len(3)ss[i][j]
37、
(1)*std
(2)std[i].age(3)max.name
38、
(1)STU
(2)std[i].num(3)std[i]
39、
(2)j--(3)j
40、
(1)t[][N]
(2)i=0;i41、(1)0(2)0(3)c42、(1)filename(2)fp(3)fp43、(1)"rb"(2)>(3)fwrite44、(1)*std(2)PERSON(3)std45、(1)*av(2)i(3)x[j]46、(1)STU(2)score[i](3)&std47、(1)0(2)t(3)i+t48、(1)n/2(2)i(3)a[n-i-1]49、(1)*a(2)2(3)i+150、(1)FILE*(2)fclose(fp)(3)fp二、程序修改题1、(1)intt[N],i,num=0;(2)t[num++]=b[i];(3)for(i=0;i2、(1)aa[i]=m%k;(2)printf("%d",aa[i-1]);3、(1)for(j=i+1;j<6;j++)(2)*(pstr+i)=*(pstr+j);4、(1)#defineFU(m,n)((m)/(n))(2)return(value);5、(1)while((fabs(t))>=num)(2)t=s/n;6、(1)m=i;(2)if(a[k]>a[m])m=k;7、(1)doubler;(2)while(fabs(m-n)>0.001)8、(1)doublefun(intm)(2)for(i=100;i<=m;i~1+=0)9、(1)num[k]=0;(2)switch(*s)10、(1)#include"stdio.h"(2)upfst(char*p)11、(1)t=a;a=b;b=t;(2)return(b);12、(1)if(('a'<=tt[i])&&(tt[i]<='z'))(2)tt[i]-=32;13、(1)IsPrime(intn)(2)if(!(n%i))14、(1)floatk;(2)if(*c>*a)15、(1)s[j++]=s[i];(2)s[j]=0;16、(1)voidfun(int*x,int*y)(2)t=*x;*x=*y;*y=t;17、(1)t=*x;*x=y;(2)returnt;18、(1)switch(g)(2)case1:return1;case2:return1;19、(1)while(i(2)if(*a)20、(1)while((2<=high)&&(n<10))(2)yes=0;break;21、(1)fun(intn)(2)if(n==1)22、(1)t-=1.0/i;(2)returnt;23、(1)voidfun(char*s,int*a,int*b)(2)++(*a);(3)++(*b);24、(1)longs=0,t=0;(2)t=t/10;25、(1)if(*p=='')(2)*(p-1)=toupper(*(p-1));26、(1)s=s+(n+1.)/n;(2)returnt;27、(1)char*fun(char*s,char*t)(2)ss++;(3)tt++;28、(1)inti,one=0,zero=0;(2)switch(s[i])(3)case0:zero++;break;29、(1)voidfun(char*str,charch)(2)if(*str!=ch)(3)str[1]=0;30、(1)b[i]=a[i][0];(2)for(j=1;j<=N-1;j++)(3)if(b[i]>a[i][j])31、(1)for(i=2;i<=m;i++)(2)y+=1.0/i/i;32、(1)returnt;(2)for(i=0;i33、(1)sum=0;(2)scanf("%d",&a[i][j]);34、(1)b[k]=*p;(2)b[k]='';k++;35、(1)t+=1./i;(2)returnt;36、(1)result*=(double)n--;(2)returnresult;37、(1)voidfun(int*a,int*b)(2)t=*b;*b=*a;*a=t;38、(1)r++;p++;(2)if(*r==0)39、(1)doublef(doublex)(2)returns;40、(1)fun(inta[],intm)(2)elseif(m>a[mid])41、(1)doublesum=0.;(2)sum/=c;42、(1)p=(NODE*)malloc(sizeof(NODE));(2)returnh;43、(1)p=s;(2)while(*p++);44、(1)intk,q,i;(2)pt[i]=str[k][i];45、(1)floatfun(intn)(2)for(i=1;i46、(1)if(k>0)(2)elseif(k==0)47、(1)b[i]=0;(2)b[a[i]-'a']++;(3)if(b[max]48、(1)n=*p-'0';(2)n=n*8+*p-'0';49、(1)sum=0;(2)if((i+1)%5==0)50、(1)t=(STU*)calloc(sizeof(STU),m);(2)t[k]=b[j];三、程序编写题1、intcount=0;while(*s!='\0'){if(*s>=48&&*s<=57)count++;s++;}returncount;2、len=strlen(a[i]);if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
41、
(2)0(3)c
42、
(1)filename
(2)fp(3)fp
43、
(1)"rb"
(2)>(3)fwrite
44、
(2)PERSON(3)std
45、
(1)*av
(2)i(3)x[j]
46、
(2)score[i](3)&std
47、
(2)t(3)i+t
48、
(1)n/2
(2)i(3)a[n-i-1]
49、
(1)*a
(2)2(3)i+1
50、
(2)fclose(fp)(3)fp
二、程序修改题
(1)intt[N],i,num=0;
(2)t[num++]=b[i];(3)for(i=0;i2、(1)aa[i]=m%k;(2)printf("%d",aa[i-1]);3、(1)for(j=i+1;j<6;j++)(2)*(pstr+i)=*(pstr+j);4、(1)#defineFU(m,n)((m)/(n))(2)return(value);5、(1)while((fabs(t))>=num)(2)t=s/n;6、(1)m=i;(2)if(a[k]>a[m])m=k;7、(1)doubler;(2)while(fabs(m-n)>0.001)8、(1)doublefun(intm)(2)for(i=100;i<=m;i~1+=0)9、(1)num[k]=0;(2)switch(*s)10、(1)#include"stdio.h"(2)upfst(char*p)11、(1)t=a;a=b;b=t;(2)return(b);12、(1)if(('a'<=tt[i])&&(tt[i]<='z'))(2)tt[i]-=32;13、(1)IsPrime(intn)(2)if(!(n%i))14、(1)floatk;(2)if(*c>*a)15、(1)s[j++]=s[i];(2)s[j]=0;16、(1)voidfun(int*x,int*y)(2)t=*x;*x=*y;*y=t;17、(1)t=*x;*x=y;(2)returnt;18、(1)switch(g)(2)case1:return1;case2:return1;19、(1)while(i(2)if(*a)20、(1)while((2<=high)&&(n<10))(2)yes=0;break;21、(1)fun(intn)(2)if(n==1)22、(1)t-=1.0/i;(2)returnt;23、(1)voidfun(char*s,int*a,int*b)(2)++(*a);(3)++(*b);24、(1)longs=0,t=0;(2)t=t/10;25、(1)if(*p=='')(2)*(p-1)=toupper(*(p-1));26、(1)s=s+(n+1.)/n;(2)returnt;27、(1)char*fun(char*s,char*t)(2)ss++;(3)tt++;28、(1)inti,one=0,zero=0;(2)switch(s[i])(3)case0:zero++;break;29、(1)voidfun(char*str,charch)(2)if(*str!=ch)(3)str[1]=0;30、(1)b[i]=a[i][0];(2)for(j=1;j<=N-1;j++)(3)if(b[i]>a[i][j])31、(1)for(i=2;i<=m;i++)(2)y+=1.0/i/i;32、(1)returnt;(2)for(i=0;i33、(1)sum=0;(2)scanf("%d",&a[i][j]);34、(1)b[k]=*p;(2)b[k]='';k++;35、(1)t+=1./i;(2)returnt;36、(1)result*=(double)n--;(2)returnresult;37、(1)voidfun(int*a,int*b)(2)t=*b;*b=*a;*a=t;38、(1)r++;p++;(2)if(*r==0)39、(1)doublef(doublex)(2)returns;40、(1)fun(inta[],intm)(2)elseif(m>a[mid])41、(1)doublesum=0.;(2)sum/=c;42、(1)p=(NODE*)malloc(sizeof(NODE));(2)returnh;43、(1)p=s;(2)while(*p++);44、(1)intk,q,i;(2)pt[i]=str[k][i];45、(1)floatfun(intn)(2)for(i=1;i46、(1)if(k>0)(2)elseif(k==0)47、(1)b[i]=0;(2)b[a[i]-'a']++;(3)if(b[max]48、(1)n=*p-'0';(2)n=n*8+*p-'0';49、(1)sum=0;(2)if((i+1)%5==0)50、(1)t=(STU*)calloc(sizeof(STU),m);(2)t[k]=b[j];三、程序编写题1、intcount=0;while(*s!='\0'){if(*s>=48&&*s<=57)count++;s++;}returncount;2、len=strlen(a[i]);if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
(1)aa[i]=m%k;
(2)printf("%d",aa[i-1]);
(1)for(j=i+1;j<6;j++)
(2)*(pstr+i)=*(pstr+j);
(1)#defineFU(m,n)((m)/(n))
(2)return(value);
(1)while((fabs(t))>=num)
(2)t=s/n;
(1)m=i;
(2)if(a[k]>a[m])m=k;
(1)doubler;
(2)while(fabs(m-n)>0.001)
(1)doublefun(intm)
(2)for(i=100;i<=m;i~1+=0)
(1)num[k]=0;
(2)switch(*s)
(1)#include"stdio.h"
(2)upfst(char*p)
(1)t=a;a=b;b=t;
(2)return(b);
(1)if(('a'<=tt[i])&&(tt[i]<='z'))
(2)tt[i]-=32;
(1)IsPrime(intn)
(2)if(!
(n%i))
(1)floatk;
(2)if(*c>*a)
(1)s[j++]=s[i];
(2)s[j]=0;
(1)voidfun(int*x,int*y)
(2)t=*x;*x=*y;*y=t;
(1)t=*x;*x=y;
(2)returnt;
(1)switch(g)
(2)case1:
return1;case2:
return1;
(1)while(i(2)if(*a)20、(1)while((2<=high)&&(n<10))(2)yes=0;break;21、(1)fun(intn)(2)if(n==1)22、(1)t-=1.0/i;(2)returnt;23、(1)voidfun(char*s,int*a,int*b)(2)++(*a);(3)++(*b);24、(1)longs=0,t=0;(2)t=t/10;25、(1)if(*p=='')(2)*(p-1)=toupper(*(p-1));26、(1)s=s+(n+1.)/n;(2)returnt;27、(1)char*fun(char*s,char*t)(2)ss++;(3)tt++;28、(1)inti,one=0,zero=0;(2)switch(s[i])(3)case0:zero++;break;29、(1)voidfun(char*str,charch)(2)if(*str!=ch)(3)str[1]=0;30、(1)b[i]=a[i][0];(2)for(j=1;j<=N-1;j++)(3)if(b[i]>a[i][j])31、(1)for(i=2;i<=m;i++)(2)y+=1.0/i/i;32、(1)returnt;(2)for(i=0;i33、(1)sum=0;(2)scanf("%d",&a[i][j]);34、(1)b[k]=*p;(2)b[k]='';k++;35、(1)t+=1./i;(2)returnt;36、(1)result*=(double)n--;(2)returnresult;37、(1)voidfun(int*a,int*b)(2)t=*b;*b=*a;*a=t;38、(1)r++;p++;(2)if(*r==0)39、(1)doublef(doublex)(2)returns;40、(1)fun(inta[],intm)(2)elseif(m>a[mid])41、(1)doublesum=0.;(2)sum/=c;42、(1)p=(NODE*)malloc(sizeof(NODE));(2)returnh;43、(1)p=s;(2)while(*p++);44、(1)intk,q,i;(2)pt[i]=str[k][i];45、(1)floatfun(intn)(2)for(i=1;i46、(1)if(k>0)(2)elseif(k==0)47、(1)b[i]=0;(2)b[a[i]-'a']++;(3)if(b[max]48、(1)n=*p-'0';(2)n=n*8+*p-'0';49、(1)sum=0;(2)if((i+1)%5==0)50、(1)t=(STU*)calloc(sizeof(STU),m);(2)t[k]=b[j];三、程序编写题1、intcount=0;while(*s!='\0'){if(*s>=48&&*s<=57)count++;s++;}returncount;2、len=strlen(a[i]);if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
(2)if(*a)
(1)while((2<=high)&&(n<10))
(2)yes=0;break;
(1)fun(intn)
(2)if(n==1)
(1)t-=1.0/i;
(1)voidfun(char*s,int*a,int*b)
(2)++(*a);(3)++(*b);
(1)longs=0,t=0;
(2)t=t/10;
(1)if(*p=='')
(2)*(p-1)=toupper(*(p-1));
(1)s=s+(n+1.)/n;
(1)char*fun(char*s,char*t)
(2)ss++;(3)tt++;
(1)inti,one=0,zero=0;
(2)switch(s[i])(3)case0:
zero++;break;
(1)voidfun(char*str,charch)
(2)if(*str!
=ch)(3)str[1]=0;
(1)b[i]=a[i][0];
(2)for(j=1;j<=N-1;j++)(3)if(b[i]>a[i][j])
(1)for(i=2;i<=m;i++)
(2)y+=1.0/i/i;
(1)returnt;
(2)for(i=0;i33、(1)sum=0;(2)scanf("%d",&a[i][j]);34、(1)b[k]=*p;(2)b[k]='';k++;35、(1)t+=1./i;(2)returnt;36、(1)result*=(double)n--;(2)returnresult;37、(1)voidfun(int*a,int*b)(2)t=*b;*b=*a;*a=t;38、(1)r++;p++;(2)if(*r==0)39、(1)doublef(doublex)(2)returns;40、(1)fun(inta[],intm)(2)elseif(m>a[mid])41、(1)doublesum=0.;(2)sum/=c;42、(1)p=(NODE*)malloc(sizeof(NODE));(2)returnh;43、(1)p=s;(2)while(*p++);44、(1)intk,q,i;(2)pt[i]=str[k][i];45、(1)floatfun(intn)(2)for(i=1;i46、(1)if(k>0)(2)elseif(k==0)47、(1)b[i]=0;(2)b[a[i]-'a']++;(3)if(b[max]48、(1)n=*p-'0';(2)n=n*8+*p-'0';49、(1)sum=0;(2)if((i+1)%5==0)50、(1)t=(STU*)calloc(sizeof(STU),m);(2)t[k]=b[j];三、程序编写题1、intcount=0;while(*s!='\0'){if(*s>=48&&*s<=57)count++;s++;}returncount;2、len=strlen(a[i]);if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
(1)sum=0;
(2)scanf("%d",&a[i][j]);
(1)b[k]=*p;
(2)b[k]='';k++;
(1)t+=1./i;
(1)result*=(double)n--;
(2)returnresult;
(1)voidfun(int*a,int*b)
(2)t=*b;*b=*a;*a=t;
(1)r++;p++;
(2)if(*r==0)
(1)doublef(doublex)
(2)returns;
(1)fun(inta[],intm)
(2)elseif(m>a[mid])
(1)doublesum=0.;
(2)sum/=c;
(1)p=(NODE*)malloc(sizeof(NODE));
(2)returnh;
(1)p=s;
(2)while(*p++);
(1)intk,q,i;
(2)pt[i]=str[k][i];
(1)floatfun(intn)
(2)for(i=1;i46、(1)if(k>0)(2)elseif(k==0)47、(1)b[i]=0;(2)b[a[i]-'a']++;(3)if(b[max]48、(1)n=*p-'0';(2)n=n*8+*p-'0';49、(1)sum=0;(2)if((i+1)%5==0)50、(1)t=(STU*)calloc(sizeof(STU),m);(2)t[k]=b[j];三、程序编写题1、intcount=0;while(*s!='\0'){if(*s>=48&&*s<=57)count++;s++;}returncount;2、len=strlen(a[i]);if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
(1)if(k>0)
(2)elseif(k==0)
(1)b[i]=0;
(2)b[a[i]-'a']++;(3)if(b[max]
(1)n=*p-'0';
(2)n=n*8+*p-'0';
(2)if((i+1)%5==0)
(1)t=(STU*)calloc(sizeof(STU),m);
(2)t[k]=b[j];
三、程序编写题
1、intcount=0;
while(*s!
='\0')
{
if(*s>=48&&*s<=57)
count++;
s++;
}
returncount;
2、len=strlen(a[i]);
if(maxlenk=i,maxlen=len;3、intcount=0;while(*ss!='\0'){if(*ss==c)count++;ss++;}returncount;4、inti,len=0;while(a[len]=='*')len++;i=len;while(a[i]!='\0'){a[i-len]=a[i];i++;}5、a[n]=0;strcpy(b,a);strcat(b,a+strlen(a)+1);6、unsignednum=w,n=1;while(num!=0){num=num/10;n=n*10;}n=n/10;returnw%n;7、char*r,*q;for(q=p;q>h;q--){if(*q=='*'){r=q;while(*r!='\0'){*r=*(r+1);r++;}}}8、inti;*s=a[0];for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
k=i,maxlen=len;
3、intcount=0;
while(*ss!
if(*ss==c)
ss++;
inti,len=0;
while(a[len]=='*')
len++;
i=len;
while(a[i]!
a[i-len]=a[i];
i++;
5、a[n]=0;
strcpy(b,a);
strcat(b,a+strlen(a)+1);
6、unsignednum=w,n=1;
while(num!
=0)
num=num/10;
n=n*10;
n=n/10;
returnw%n;
7、char*r,*q;
for(q=p;q>h;q--)
if(*q=='*')
r=q;
while(*r!
*r=*(r+1);
r++;
8、inti;
*s=a[0];
for(i=1;i{if((*s).s>a[i].s)*s=a[i];}9、intsum=0,i;for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if((*s).s>a[i].s)
*s=a[i];
9、intsum=0,i;
for(i=0;isum=sum+a[0][i]+a[M-1][i];for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
sum=sum+a[0][i]+a[M-1][i];
for(i=1;isum=sum+a[i][0]+a[i][N-1];returnsum;10、intsum=0,i;for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
sum=sum+a[i][0]+a[i][N-1];
returnsum;
10、intsum=0,i;
for(i=0;isum=sum+w[0][i]+w[N-1][i];for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
sum=sum+w[0][i]+w[N-1][i];
for(i=1;isum=sum+w[i][0]+w[i][N-1];return(double)sum/(4*N-4);11、voidfun(char*a){char*t;while(*a){if(*a=='*'){t=a-1;while(*a){*(a)=*(a+1);a++;}*a='\0';a=t;}a++;}}12、voidfun(intm,int*k,intxx[]){inti,j,num=0;for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
sum=sum+w[i][0]+w[i][N-1];
return(double)sum/(4*N-4);
11、voidfun(char*a)
char*t;
while(*a)
if(*a=='*')
t=a-1;
while(*a){*(a)=*(a+1);a++;}
*a='\0';
a=t;
a++;
12、voidfun(intm,int*k,intxx[])
inti,j,num=0;
for(i=2;i{for(j=2;j{if(i%j==0){xx[num++]=i;break;}}}*k=num;}13、voidfun(STUa[],STU*s){inti,j=0,max;max=a[0].s;for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(j=2;j
if(i%j==0){xx[num++]=i;break;}
*k=num;
13、voidfun(STUa[],STU*s)
inti,j=0,max;
max=a[0].s;
for(i=1;i{if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(max{max=a[i].s;*s=a[i];}}}14、intfun(STREC*a,STREC*b){inti,num=0,max;max=a[0].s;for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
{max=a[i].s;
*s=a[i];}
14、intfun(STREC*a,STREC*b)
{inti,num=0,max;
for(i=1;i{if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(max}for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(i=0;i{if(max==a[i].s){b[num]=a[i];num++;}}returnnum;}15、voidfun(chars[][N],char*b){inti,j,n=0;for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(max==a[i].s){b[num]=a[i];num++;}
returnnum;
15、voidfun(chars[][N],char*b)
inti,j,n=0;
for(i=0;i{for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(j=0;j}b[n]='\0';}16、intfun(intlim,intaa[MAX]){/*以下代码仅供参考*/inti,j,k=0;/*其中变量k用于统计素数个数*/for(i=2;i<=lim;i++){/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/for(j=2;jif(i%j==0)break;if(i==j)aa[k++]=i;}returnk;}17、voidfun(int*a,int*n){inti=1;*n=0;while(i<1000){if((i%7==0||i%11==0)&&(i%77!=0))a[(*n)++]=i;i++;}}18、voidfun(STREC*a){inti;floatsum=0;for(i=0;is[i];}a->ave=sum/N;}19、voidfun(char*s,chart[]){inti,j=0,len;len=strlen(s);for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
b[n]='\0';
16、intfun(intlim,intaa[MAX])
/*以下代码仅供参考*/
inti,j,k=0;
/*其中变量k用于统计素数个数*/
for(i=2;i<=lim;i++)
/*以下找出小于或等于lim的素数存入aa数组中并统计素数个数*/
if(i%j==0)break;
if(i==j)aa[k++]=i;
returnk;
17、voidfun(int*a,int*n)
inti=1;
*n=0;
while(i<1000)
{if((i%7==0||i%11==0)&&(i%77!
=0))a[(*n)++]=i;
18、voidfun(STREC*a)
inti;
floatsum=0;
for(i=0;is[i];}
a->ave=sum/N;
19、voidfun(char*s,chart[])
inti,j=0,len;
len=strlen(s);
for(i=0;i{if(i%2==0&&s[i]%2!=0);else{t[j]=s[i];j++;}}t[j]='\0';}20、doublefun(){doublex1=0.0,x0;do{x0=x1;x1=cos(x0);}while(fabs(x0-x1)>=1e-6);returnx1;}21、voidfun(char*a,intn){intnum=0;char*p=a;while(*p)p++;p=p-1;while(*p=='*'){num++;p--;}if(num>n){p=p+n+1;*p=0;}}22、voidfun(char*str){inti,j=0,len=0;char*p=str;while(*p){len++;p++;}p=str;for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(i%2==0&&s[i]%2!
=0);
else{t[j]=s[i];j++;}
t[j]='\0';
20、doublefun()
{doublex1=0.0,x0;
do{x0=x1;x1=cos(x0);}
while(fabs(x0-x1)>=1e-6);
returnx1;
21、voidfun(char*a,intn)
intnum=0;
char*p=a;
while(*p)p++;
p=p-1;
while(*p=='*'){num++;p--;}
if(num>n)
p=p+n+1;
*p=0;
22、voidfun(char*str)
inti,j=0,len=0;
char*p=str;
while(*p){len++;p++;}
p=str;
for(i=0;i{if(*p!=''){str[j++]=*p;}p++;}str[j]=0;}23、floatfun(floath){return(int)(100*h+0.5)/100.0;}24、voidfun(char*tt,intpp[]){inti;for(i=0;i<26;i++)pp[i]=0;while(*tt){pp[*tt-'a']++;tt++;}}25、voidfun(char*s,intnum){inti,j;chart;for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
{if(*p!
=''){str[j++]=*p;}
p++;
str[j]=0;
23、floatfun(floath)
return(int)(100*h+0.5)/100.0;
24、voidfun(char*tt,intpp[])
for(i=0;i<26;i++)pp[i]=0;
while(*tt)
pp[*tt-'a']++;
tt++;
25、voidfun(char*s,intnum)
inti,j;
chart;
for(i=1;ifor(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(j=i+1;jif(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}}26、intfun(intt){intf1=0,f2=1,fn;fn=f1+f2;while(fn<=t){f1=f2;f2=fn;fn=f1+f2;}returnfn;}27、voidfun(char*w,intm)/*可调用fun1函数左移字符*/{chara[N];inti;for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(s[i]>s[j]){t=s[i];s[i]=s[j];s[j]=t;}
intfun(intt)
intf1=0,f2=1,fn;
fn=f1+f2;
while(fn<=t)
{f1=f2;
f2=fn;
fn=f1+f2;}
returnfn;
voidfun(char*w,intm)/*可调用fun1函数左移字符*/
chara[N];
for(i=0;iwhile(w[i]){w[i-m]=w[i];i++;}i--;m--;for(;m>=0;m--,i--)w[i]=a[m];}28、voidfun(char*a,char*s){while(*a=*s){a++;s++;}}29、voidfun(char*s){nti,j,k=0;chart;while(s[k]!='\0')k++;for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
while(w[i]){w[i-m]=w[i];i++;}
i--;m--;
for(;m>=0;m--,i--)w[i]=a[m];
28、voidfun(char*a,char*s)
while(*a=*s)
29、voidfun(char*s)
{nti,j,k=0;chart;
while(s[k]!
='\0')k++;
for(i=0,j=k-1;i{t=s[i];s[i]=s[j];s[j]=t;}}30、doublefun(doublea[],intn){doublet,r,sum;inti,j;for(i=0;i<9;i++)for(j=i+1;j<10;j++)if(a[i]>a[j]){t=a[i];a[i]=a[j];a[j]=t;}sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];r=sum/8.0;returnr;}31、inti,j;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=0;for(i=0;i<3;i++)for(j=0;j<3;j++)b[i][j]=a[i][j]+a[j][i];32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
{t=s[i];s[i]=s[j];s[j]=t;
}}
30、doublefun(doublea[],intn)
{doublet,r,sum;inti,j;
for(i=0;i<9;i++)
for(j=i+1;j<10;j++)
if(a[i]>a[j])
{t=a[i];a[i]=a[j];a[j]=t;}
sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8];
r=sum/8.0;
returnr;
31、inti,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
b[i][j]=0;
b[i][j]=a[i][j]+a[j][i];
32、inti;for(i=0;iif(s[i]==x)returni;return-1;33、inti,j,t;for(i=0;i<3;i++)for(j=0;j{t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}34、floatave,sum=0.0;STREC*p;p=h->next;while(p){sum+=p->s;p=p->next;}ave=sum/N;returnave;35、inti,j=0;for(i=0;str[i+1]!=’\0’;i++)if(str[i]==substr[0]&&str[i+1]==substr[1])j++;returnj;36、inti=0;char*p;p=s;while(*p){if(*p!=c){s[i]=*p;i++;}}s[i]=’\0’;37、intmin;inti,j;for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(s[i]==x)
returni;
return-1;
33、inti,j,t;
for(j=0;j
t=array[i][j];
array[i][j]=array[j][i];
array[j][i]=t;
34、floatave,sum=0.0;
STREC*p;
p=h->next;
while(p)
{sum+=p->s;
p=p->next;
ave=sum/N;
returnave;
35、inti,j=0;
for(i=0;str[i+1]!
=’\0’;i++)
if(str[i]==substr[0]&&str[i+1]==substr[1])
j++;
returnj;
36、inti=0;
char*p;
p=s;
while(*p)
if(*p!
=c)
s[i]=*p;
s[i]=’\0’;
37、intmin;
for(i=0;i{min=tt[0][i];for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
min=tt[0][i];
for(j=0;j{if(min>tt[j][i])min=tt[j][i];}pp[i]=min;}38、inti=0;for(;*s!=’\0’;s++)if(*s%2==1)t[i++]=*s;t[i]=’\0’;39、inti;doubles=0.0;for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(min>tt[j][i])
min=tt[j][i];
pp[i]=min;
38、inti=0;
for(;*s!
=’\0’;s++)
if(*s%2==1)
t[i++]=*s;
t[i]=’\0’;
39、inti;
doubles=0.0;
for(i=1;is=s+log(i);returnsqrt(s);40、char*t=a;for(;t<=p;t++)if(*t!=’*’)*(a++)=*t;for(;*t!=’\0’;t++)*(a++)=*t;*a=’\0’;41、doublefun(intn){inti;floats=1.0,t=1.0;for(i=2;i<=n;i++){t=t+i;s=s+1/t;}returns;}42、intfun(char*s){inti=0,j=0,f=1;while(s[i]){if(s[i]<'a'||s[i]>'z'){if(f)j++;f=0;}elsef=1;i++;}43、voidfun(int*a,int*b){inti,k;for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
s=s+log(i);
returnsqrt(s);
40、char*t=a;
for(;t<=p;t++)if(*t!
=’*’)*(a++)=*t;
for(;*t!
=’\0’;t++)*(a++)=*t;
*a=’\0’;
doublefun(intn)
floats=1.0,t=1.0;
for(i=2;i<=n;i++)
t=t+i;
s=s+1/t;
returns;
intfun(char*s)
inti=0,j=0,f=1;
while(s[i])
if(s[i]<'a'||s[i]>'z')
if(f)j++;
f=0;
else
f=1;
voidfun(int*a,int*b)
inti,k;
for(i=0;ifor(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(i=0;i{k=a[i]/10;if(k>=10)b[10]++;elseb[k]++;}}44、voidfun(inta[][N]){inti,j;for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
{k=a[i]/10;
if(k>=10)b[10]++;
elseb[k]++;
voidfun(inta[][N])
for(i=0;ifor(j=0;j<=i;j++)a[i][j]=0;}45、voidfun(inta[][N],intm){inti,j;for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(j=0;j<=i;j++)
a[i][j]=0;
voidfun(inta[][N],intm)
for(i=0;ifor(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
for(j=i;ja[i][j]*=m;}46、void fun ( int a[][N], int n ){int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
a[i][j]*=m;
void fun ( int a[][N], int n ){
int i,j;for(i=0;i47、longfun(char*s){inti,j;longintp;i=strlen(s);p=s[0]-48;for(j=1;jp=p*10+(s[j]-48);returnp;}48、STRECfun(STREC*a,char*b){STRECres;inti;for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
longfun(char*s)
{inti,j;
longintp;
i=strlen(s);
p=s[0]-48;
for(j=1;j
p=p*10+(s[j]-48);
returnp;
STRECfun(STREC*a,char*b)
STRECres;
for(i=0;i{if(strcmp(a[i].num,b)==0){res=a[i];returnres;}}strcpy(res.num,"");res.s=-1;returnres;}49、doublefun(STREC*a,STREC*b,int*n){inti,j;doubleave,sum=0.0;*n=0;for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(strcmp(a[i].num,b)==0)
res=a[i];
returnres;
strcpy(res.num,"");
res.s=-1;
doublefun(STREC*a,STREC*b,int*n)
doubleave,sum=0.0;
for(i=0;i{sum+=a[i].s;}ave=sum/N;for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
sum+=a[i].s;
for(i=0,j=0;i{if(a[i].s<=ave){b[j]=a[i];j++;(*n)++;}i++;}returnave;}50、intfun(inta[],intn){inti,j=0;for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(a[i].s<=ave)
b[j]=a[i];
(*n)++;
intfun(inta[],intn)
inti,j=0;
for(i=1;i{if(a[i]!=a[j]){j++;a[j]=a[i];}}returnj+1;}
if(a[i]!
=a[j])
a[j]=a[i];
returnj+1;
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1