![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
不懂我就问.
这个作者很懒,什么都没留下…
展开
-
二101010
#include <stdio.h>#define N 3int fun(int (*a)[N]){ int i,j,m1,m2,row,colum; m1=m2=0; for(i=0; i<N; i++) { j=N-i-1; m1+=a[i][i]; m2+=a[i][j]; } if(m1!=m2) return 0; for(i=0; i<N; i++) {/**********found**********/ ro原创 2021-09-22 09:35:49 · 123 阅读 · 0 评论 -
二9999
blank#include <stdio.h>#define N 7/**********found**********/void fun(int (*a)[N]){ int i,j,k,m; if(N%2==0) m=N/2 ; else m=N/2+1; for(i=0; i<m; i++) {/**********found**********/ for(j=i; j<N-i; j++) a[i][j]=原创 2021-09-22 09:31:41 · 111 阅读 · 0 评论 -
二8888
blank#include <stdio.h>#define N 4void fun(int (*a)[N], int *b){ int i,j;for(i=0; i<N; i++) {/found/b[i]=a[0][i];for(j=1; j<N; j++)/found/if(b[i]< a[j][i])b[i]=a[j][i];modi}}void main(){ int x[N][N]={ {12,5,8,7},{6,1,9,3},{1,原创 2021-09-22 09:30:09 · 70 阅读 · 0 评论 -
二7777
blank#include <stdlib.h>#include <stdio.h>#define N 20void fun( int a){ int i, x, n=0;x=rand()%20;/found/while (n<N){ for(i=0; i<n; i++ )/found/if( xa[i] )break;/found/if( in){ a[n]=x; n++; }x=rand()%20;}}void main(){原创 2021-09-22 09:29:36 · 312 阅读 · 0 评论 -
二6666
blank#include <stdio.h>#include <string.h>#include <ctype.h>#define N 9long ctod( char *s ){ long d=0;while(*s)if(isdigit( s)) {/found/d=d10+*s-‘0’;/found/s++;}return d;}long fun( char *a, char *b ){/found/return ctod(a原创 2021-09-22 09:29:01 · 68 阅读 · 0 评论 -
二5555
blank#include <stdlib.h>#include <stdio.h>#define N 10double fun(double x){ int i, j; double av, y[N];av=0;for(i=0; i<N; i++)/found/av+=x[i]/N;for(i=j=0; i<N; i++)if( x[i]<av ){y[j]=x[i]; x[i]=-1;/found/j++;}i=0;while(原创 2021-09-22 09:28:25 · 81 阅读 · 0 评论 -
1010101010
91.#include<stdio.h>#include<string.h>main(){ char a[100],b[100],c[200],*p; scanf("%s%s",a,b); int i=0,j=0,k=0; while(a[i]!='\0'&&b[j]!='\0') { if(a[i]<=b[j]) c[k++]=a[i++]; else c[k++]=b[j++]; } c[k]='\0'; if(a[i原创 2021-09-17 11:23:37 · 130 阅读 · 0 评论 -
99999
81.#include<stdio.h>fun(int a[],int n,int m){ int i,j,b[m]; for(i=0;i<m;i++) b[i]=a[n-1-i]; for(i=n-m-1;i>=0;i--) a[i+m]=a[i]; for(i=0;i<m;i++) a[i]=b[i];}main(){ int i,a[10],m; for(i=0;i<10;i++) scanf("%d",&a[i]); sc原创 2021-09-17 11:15:57 · 226 阅读 · 0 评论 -
88888
71.#include<Stdio.h>#include<math.h>main(){ int i,j,m; for(m=1;m<100000;m++) { i=sqrt(m+100); { if(i*i==(m+100)) { j=sqrt(m+268); if(j*j==(m+268)) printf(" %d",m); } } }}72.#include<stdio.h>main(原创 2021-09-17 11:15:22 · 114 阅读 · 0 评论 -
77777
61.#include<stdio.h>#include<stdlib.h>main(){ FILE *fp; char a[10],ch; scanf("%s",a); if((fp=fopen(a,"w"))==NULL) exit(0); ch=getchar(); ch=getchar(); while(ch!='#') { fputc(ch,fp); ch=getchar(); } putchar(10); fclose(fp);原创 2021-09-17 11:14:50 · 1264 阅读 · 0 评论 -
66666
51.#include<stdio.h>#include<stdlib.h>#define LEN sizeof(struct student)struct student{ int num; char name[100]; struct student *next;};int n;struct student *scan(void){ struct student *p1,*p2,*head; p1=p2=(struct student *)malloc原创 2021-09-17 11:14:18 · 100 阅读 · 0 评论 -
55555
41.#include<stdio.h>fn(int a,int n){ int i,sum=a; for(i=1;i<n;i++) { sum=sum*10+a; } return(sum); } main(){ int a,n,sum=0; int i; scanf("%d%d",&a,&n); for(i=1;i<=n;i++) { sum+=fn(a,i); } printf("%d", sum);}原创 2021-09-17 11:12:49 · 80 阅读 · 0 评论 -
2021暑假4
31.#include<stdio.h>scan(int *a){ int i; for(i=0;i<10;i++) scanf("%d",(a+i));}fun(int *a){ int max=*a,min=*a,i; for(i=0;i<10;i++) { if(max<*(a+i)) max=*(a+i); if(min>*(a+i)) min=*(a+i); } for(i=0;i<10;i++) { i原创 2021-07-26 09:18:44 · 51 阅读 · 0 评论 -
2021暑假二级2
#include <stdlib.h>#include <stdio.h>#define N 10double fun(double x[],double *y){ int i,j; double av;/**********found**********/ av=0.0;/**********found**********/ for(i=0; i<N; i++) av=av+x[i]/N; for(i=j=0; i<原创 2021-07-11 15:42:17 · 45 阅读 · 0 评论 -
2021暑假2
11#include<stdio.h>float fish(float n){if(n==5) return (11);else return ((n+1)/n)*(fish(n+1)+1/(n+1));}main(){ printf("%f",fish(1));}12#include<stdio.h>void splitfloat(float x,int *intpart,float *fracpart){ *intpart=(int)x; *f原创 2021-07-11 15:40:20 · 37 阅读 · 0 评论 -
2021暑假
1#include<stdio.h>even(int n){ if(n%2) return(1); else return(0); } main() { int n,sum=0; scanf("%d",&n); while(n) { if(even(n)) sum+=n; scanf("%d",&n); } printf("%d",sum); } 2 #include<stdio.h>#incl原创 2021-07-04 21:43:12 · 51 阅读 · 0 评论 -
1
1 输出Hello World!#include<stdio.h>void main(){printf(“Hello World!”);}原创 2021-02-20 15:14:43 · 60 阅读 · 0 评论