90.字母大写——小写char* EXUL( char tt[] ){for(;*tt;tt++)if((*tt>='A')&&(*tt<='Z'))*tt+=('a'-'A');}89.字母小写——大写88.小数整数加double Pdt( int n, double pp[] ) {int i,s=0;for(i=0;i<n;i++){s=s+pp[i]/1;}return s;}87.小数小数相加double Acc( int k, double dd[] ) {int i,a;double b,s=0;for(i=0;i<k;i++){a=dd[i];b=dd[i]-a;s=s+b;}return s;}86.字符——第一个位移到最后void fun ( char*s ){char a;a=*s;for(;*(s+1)!='\0';s++)*s=*(s+1);*s=a;}85.字符——字母后移fun ( char*s ){for(;*s!='\0';s++)if(*s=='z'||*s=='Z')*s=*s-('z'-'a');else*s=*s+1;}84.字符——逆置void fun ( char*s ){char a;int b,i;b=strlen(s);for(i=0;i<(b/2);i++){a=s[i];s[i]=s[b-1-i];s[b-1-i]=a;}}83.整形数组——奇数偶数分别和fun ( int*a, int n, int*odd, int*even ) {int i;*even=0;*odd=0;for(i=0;i<N;i++){if(a[i]%2==0)*odd=*odd+a[i];else*even=*even+a[i];}}82.123456——23456unsigned fun ( unsigned w ){int i,a=1;unsigned s=w;for(i=0;w>=1;i++){w=w/10;a=a*10;}s=s%(a/10);return s;}81,整形数组求和int fun ( int a[M][N] ){int s,s1=0,s2=0,s3=0,s4=0,i;for(i=0;i<N;i++)s1=s1+a[0][i];for(i=0;i<N;i++)s3=s3+a[M-1][i];for(i=1;i<M-1;i++)s2=s2+a[i][0];for(i=1;i<M-1;i++)s4=s4+a[i][N-1];s=s1+s2+s3+s4;return s;}80,数组分组求最小void fun ( int tt[M][N], int pp[N] ) {int i,j,min;for(i=0;i<M;i++){min=tt[i][0];for(j=0;j<N;j++){if(tt[i][j]<min)min=tt[i][j];}pp[i]=min;}}79,数组——删除制定数字void fun ( int bb[ ], int*n, int y ){int i=*n,j;for(;i>=0;i--)if(bb[i]==y){for(j=i;j<*n;j++)bb[j]=bb[j+1];(*n)--;}}78,同构树int fun ( int x ){if(x*x%10==x||x*x%100==x)return 1;elsereturn 0;}77,字符数组——删除ASCII值偶数的字符void fun(char*s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]%2!==0){t[j]=s[i];j++;}}76,字符数组——除下标为偶数及本身ASKII值为偶数外全删void fun(char*s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]%2==0&&i%2==0){t[j]=s[i];j++;}t[j]='\0';}75,字符数组——下标为偶数及本身ASKII值为偶数全删void fun(char*s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]%2==0&&i%2==0);else{t[j]=s[i];j++;}t[j]='\0';}74,字符数组——下标为奇数及本身ASKII值为奇数全删void fun(char*s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]%2!=0&&i%2!=0);else{t[j]=s[i];j++;}t[j]='\0';}73,字符数组——删除奇数下标字符void fun(char*s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(i%2!=0);else{t[j]=s[i];j++;}t[j]='\0';}72,a,b数组逆序和void fun(int a[], int b[], int c[], int n) {int i,j;for(i=0;i<n;i++){c[i]=a[i]+b[n-1-i];}}71,a,b数组平方逆序差void fun(int a[], int b[], int c[], int n) {int i;for(i=0;i<n;i++){c[i]=a[i]*a[i]-b[n-1-i]*b[n-1-i];}}70,a,b数组逆序相乘,再平方void fun(int a[], int b[], int c[], int n) {int i;for(i=0;i<n;i++){c[i]=a[i]*a[i]*b[n-1-i]*b[n-1-i];}}69,a,b数组平方逆序和void fun(int a[], int b[], int c[], int n) {int i;for(i=0;i<n;i++){c[i]=a[i]*a[i]+b[n-1-i]*b[n-1-i];}}68,a,b数组逆序差void fun(int a[], int b[], int c[], int n) {int i;for(i=0;i<n;i++){c[i]=a[i]-b[n-1-i];}}67,数组——价格分段区间个数void fun(int a[], int b[], int n){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;i<n;i++){if(a[i]>=0&&a[i]<=99)b[0]++;if(a[i]>=100&&a[i]<=199)b[1]++;if(a[i]>=200&&a[i]<=299)b[2]++;if(a[i]>=300&&a[i]<=399)b[3]++;if(a[i]>=400&&a[i]<=499)b[4]++;if(a[i]>=500)b[5]++;}}66,数组——年龄分段区间个数void fun(int a[], int b[], int n){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;i<n;i++){if(a[i]>=0&&a[i]<=9)b[0]++;if(a[i]>=10&&a[i]<=19) b[1]++;if(a[i]>=20&&a[i]<=29) b[2]++;if(a[i]>=30&&a[i]<=39) b[3]++;if(a[i]>=40&&a[i]<=49) b[4]++;if(a[i]>=50)b[5]++;}}65,数组——年龄分段区间个数void fun(int a[], int b[], int n) {int i;for(i=0;i<6;i++)b[i]=0;for(i=0;i<n;i++){if(a[i]>=60&&a[i]<=69) b[0]++;if(a[i]>=70&&a[i]<=79) b[1]++;if(a[i]>=80&&a[i]<=89) b[2]++;if(a[i]>=90&&a[i]<=99) b[3]++;if(a[i]>=100)b[4]++;if(a[i]<60)b[5]++;}}64,数组——分数分段区间个数void fun(int a[], int b[], int n) {int i;for(i=0;i<6;i++)b[i]=0;for(i=0;i<n;i++){if(a[i]>=60&&a[i]<=69) b[0]++;if(a[i]>=70&&a[i]<=79) b[1]++;if(a[i]>=80&&a[i]<=89) b[2]++;if(a[i]>=90&&a[i]<=99) b[3]++;if(a[i]==100)b[4]++;if(a[i]<60)b[5]++;}}63,数组——工资分段区间个数void fun(int a[], int b[], int n) {int i;for(i=0;i<6;i++)b[i]=0;for(i=0;i<n;i++){if(a[i]>=0&&a[i]<=999) b[0]++;if(a[i]>=1000&&a[i]<=1999) b[1]++;if(a[i]>=2000&&a[i]<=2999) b[2]++;if(a[i]>=3000&&a[i]<=3999) b[3]++;if(a[i]>=4000&&a[i]<=4999) b[4]++;if(a[i]>=5000)b[5]++;}}62,字符数组——字母分段个数void fun(char*a, int b[]){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;a[i]!='\0';i++){if(a[i]=='A')b[0]++;if(a[i]=='B')b[1]++;if(a[i]=='C')b[2]++;if(a[i]=='D')b[3]++;if(a[i]=='E')b[4]++;if(a[i]!='A'&&a[i]!='B'&&a[i]!='C'&&a[i]!='D'&&a[i]!='E') b[5]++;}}61,字符数组——字母分段个数void fun(char*a, int b[]){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;a[i]!='\0';i++){if(a[i]=='z')b[0]++;if(a[i]=='y')b[1]++;if(a[i]=='x')b[2]++;if(a[i]=='w')b[3]++;if(a[i]=='v')b[4]++;if(a[i]!='z'&&a[i]!='y'&&a[i]!='x'&&a[i]!='w'&&a[i]!='v') b[5]++;}}void fun(char*a, int b[]){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;a[i]!='\0';i++){if(a[i]=='+')b[0]++;if(a[i]=='-')b[1]++;if(a[i]=='*')b[2]++;if(a[i]=='/')b[3]++;if(a[i]=='&')b[4]++;if(a[i]!='+'&&a[i]!='-'&&a[i]!='*'&&a[i]!='/'&&a[i]!='&') b[5]++;}}59,字符数组——字母分段个数void fun(char*a, int b[]){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;a[i]!='\0';i++){if(a[i]=='Z')b[0]++;if(a[i]=='Y')b[1]++;if(a[i]=='X')b[2]++;if(a[i]=='W')b[3]++;if(a[i]=='V')b[4]++;if(a[i]!='V'&&a[i]!='W'&&a[i]!='X'&&a[i]!='Y'&&a[i]!='Z') b[5]++;}}void fun(char*a, int b[]){int i;for(i=0;i<6;i++)b[i]=0;for(i=0;a[i]!='\0';i++){if(a[i]=='a')b[0]++;if(a[i]=='b')b[1]++;if(a[i]=='c')b[2]++;if(a[i]=='d')b[3]++;if(a[i]=='e')b[4]++;if(a[i]!='a'&&a[i]!='b'&&a[i]!='c'&&a[i]!='d'&&a[i]!='e') b[5]++;}}57,结构体——找最低成绩fun( STU a[], STU *s ){int i;*s=a[0];for(i=0;i<N;i++)if(((*s).s)>(a[i].s))*s=a[i];}56,字符数组——删除数字字符void fun (char*s){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]>='0'&&s[i]<='9');else{s[j]=s[i];j++;}s[j]='\0';}55,数组——找最大值及其下标void fun(int a[], int n , int *max, int *d ) {int i;*max=a[0];*d=0;for(i=1;i<n;i++)if(*max<a[i]){*d=i;printf("%d%d",*d,i);*max=a[i];}}54,数组——整除7||11void fun ( int m, int *a , int *n ){int i,j=0;(*n)=0;for(i=1;i<50;i++)if(i%7==0||i%11==0){(*n)++;a[j]=i;j++;}}53,知精度求pidouble fun ( double eps){int i=0;double z=1,m=1,pa=0,x=1;while(x>=eps){pa=pa+x;i++;z=z*i;m=m*(2*i+1);x=z/m;}return(2*pa);}52,字符数组——比较长度,打印长的char *fun ( char *s, char *t) {int i,j1=0,j2=0;for(i=0;s[i]!='\0';i++)j1++;for(i=0;t[i]!='\0';i++)j2++;if(j1>=j2)return s;elsereturn t;}51,字符数组——数字字符变数字long fun ( char *p){int i;long s=0;if(p[0]=='-'){for(i=1;p[i]!='\0';i++){p[i]=p[i]-'0';s=s*10+p[i];}return (-s);}else{for(i=0;p[i]!='\0';i++){p[i]=p[i]-'0';s=s*10+p[i];}return s;}}50,数组——求平均值float fun ( float *a , int n ) {int i;float p=0;for(i=0;i<n;i++)p=p+a[i]/n;return p;}49,俩数交换个十百千void fun(int a, int b, long *c) {int s1,s2,g1,g2;s1=a/10;g1=a%10;s2=b/10;g2=b%10;*c=10*s1+g1*1000+s2+g2*100;}48,俩数个十百千交换void fun(int a, int b, long *c) {int g1,s1,g2,s2;g1=a%10;s1=a/10;g2=b%10;s2=b/10;*c=s1*100+g1+s2*10+g2*1000;}47,公式计算double fun(int n){int i;double b=1,s=0,t=1;for(i=2;i<=n+1;i++){s=s+t;b=b+i;t=1/b;}return s;}46,字符数组——删除奇数项void fun(char *s, char t[]) {int i,j=0;for(i=0;s[i]!='\0';i++)if(i%2!=0){t[j]=s[i];j++;}t[j]='\0';}45,数组——左下三角元素置零int fun ( int a[][N] ){int i,j;for(i=0;i<N;i++)for(j=0;j<N;j++)if(i>=j)a[i][j]=0;}44,俩数个十百千交换void fun(int a, int b, long *c) {int g1,s1,g2,s2;g1=a%10;s1=a/10;g2=b%10;s2=b/10;*c=s1+g1*100+s2*1000+g2*10; }43,俩数个十百千交换void fun(int a, int b, long *c){int g1,s1,g2,s2;g1=a%10;s1=a/10;g2=b%10;s2=b/10;*c=s1*1000+g1*10+s2*100+g2;}42,公式计算float fun(int n){int i;double b=1,s=0,t=1;for(i=2;i<=n+1;i++){s=s+t;b=b+i;t=1/b;}return s;}41,结构体——成绩统计double fun( STREC *a, STREC *b, int *n ) {int i,j=0;double s=0;*n=0;for(i=0;i<N;i++){s=s+(a[i].s)/N;}for(i=0;i<N;i++){if(a[i].s<s){(*n)++;b[j]=a[i];j++;}}return s;}40,结构体——查询STREC fun( STREC *a, char *b ) {int i;STREC c;for(i=0;i<N;i++)if(strcmp(a[i].num,b)==0)return a[i];c.num[0]='\0';c.s=-1;return c;}39,字母个数统计void fun(char *tt, int pp[]) {int i;for(i=0;i<26;i++)pp[i]=0;while(*tt!='\0'){if(*tt>='a' && *tt<='z'){pp[*tt-'a']++;tt++;}}}38,删除前排‘*******’void fun( char *a ){int i,j;for(i=0;a[i]=='*';i++);for(j=0;a[i]!='\0';j++){a[j]=a[i];i++;}a[j]='\0';}37,多维数组一维输出void fun(char (*s)[N], char *b) {int i,j,k=0;for(i=0;i<4;i++)for(j=0;j<3;j++){b[k]=s[j][i];k++;}b[k]='\0';}36,多维数组倒置int fun(int array[3][3]){int i,j,t;for(i=0;i<3;i++)for(j=0;j<i;j++){t=array[i][j];array[i][j]=array[j][i];array[j][i]=t;}}35,公式——m!/n!/(m-n)!float fun(int m, int n){int i;float M=1,N=1,T=1,p;for(i=1;i<=m;i++)M=M*i;for(i=1;i<=n;i++)N=N*i;for(i=1;i<=(m-n);i++)T=T*i;p=M/(N*T);return p;}34,回文判断int fun(char *str){int i,j,k,flag=1;for(i=0;str[i]!='\0';i++);k=i-1;for(j=0;j<i;j++,k--)if(str[j]!=str[k])flag=0;return flag;}33,结构体——成绩——最低分数据int fun( STREC *a, STREC *b ) {int i,j=0,min=a[0].s,t=0;for(i=0;i<N;i++)if(min>a[i].s)min=a[i].s;for(i=0;i<N;i++)if(a[i].s==min){t++;b[j]=a[i];j++;}return t;}32,数组——平移n位void fun(int *w, int p, int n) {int i,j=0,t[N],s=p;for(i=0;i<n-s-1;i++){t[i]=w[p+1];p++;}for(i;i<n;i++){t[i]=w[j];j++;}for(i=0;i<n;i++)w[i]=t[i];}31,字符数组——删除下标为偶数同时其ascii值为奇数的元素void fun(char *s, char t[]){int i,j=0;for(i=0;s[i]!='\0';i++)if(s[i]%2!=0&&i%2==0);else{t[j]=s[i];j++;}t[j]='\0';}30,数组——人数统计void fun( int *a, int *b){int i;for(i=0;i<11;i++)b[i]=0;for(i=0;i<50;i++){if(a[i]>=0&&a[i]<=9)b[0]++;if(a[i]>=10&&a[i]<=19)b[1]++;if(a[i]>=20&&a[i]<=29)b[2]++;if(a[i]>=30&&a[i]<=39)b[3]++;if(a[i]>=40&&a[i]<=49)b[4]++;if(a[i]>=50&&a[i]<=59)b[5]++;if(a[i]>=60&&a[i]<=69) b[6]++;if(a[i]>=70&&a[i]<=79)b[7]++;if(a[i]>=80&&a[i]<=89)b[8]++;if(a[i]>=90&&a[i]<=99)b[9]++;if(a[i]>=100)b[10]++;}}。