摘要: #include<stdio.h>void convert(int n,int m){ int ch[100]; if(m<10) { int x=1,i=0,j;//做余数,除数 while(x>0) { ch[i++]=n%m; x=n/m; n/=m; } while(i--) { print 阅读全文
posted @ 2020-02-10 15:07 我是个好孩子 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct employee{ long no; char name[9]; int birth[4];};void input(struct employee emp[100],int n){ int i; for(i=1;i<=n;i++) { scanf(" 阅读全文
posted @ 2020-02-09 20:49 我是个好孩子 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct student{ long no; char name[9]; int score;};void input(struct student stu[100],int n){ int i; for(i=0;i<n;i++) { scanf("%ld %s 阅读全文
posted @ 2020-02-09 19:56 我是个好孩子 阅读(263) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct student{ long no; char name[9]; int score;} ;void input(struct student stu[],int n){ int j; for(j=0;j<n;j++) { scanf("%ld %s % 阅读全文
posted @ 2020-02-09 19:54 我是个好孩子 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct student { long no; char name[9]; int score;} t;void input(struct student stu[],int n) { int i; for(i=0;i<n;i++) { scanf("%ld % 阅读全文
posted @ 2020-02-09 17:03 我是个好孩子 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>struct student{ long no; char name[9]; int ch[20]; int count;//多定义一个count来看某个学生是不是每科的成绩都大于平均值 }read(struct student 阅读全文
posted @ 2020-02-09 14:52 我是个好孩子 阅读(197) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int f(int n,int L,int R){ int ch[10000],i,j,count=0; j=1; for(i=L;i<=R;i++) { if(isprime(i)==1) { ch[j]=i; j++; } } for(i=1;i<j&&(ch[ 阅读全文
posted @ 2020-02-06 20:20 我是个好孩子 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>struct student{ char name[9]; long no; int score[4];};void input(struct student stu[100],int n){ int i; for(i=1;i<=n;i++) { scanf("%l 阅读全文
posted @ 2020-02-06 18:34 我是个好孩子 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int fill(char *map,int *primes) { for (int i = 2; i < 1001; i++) { map[i] = 1; for (int j = 2; j < i; j++) { if (i % j == 0) { map[i 阅读全文
posted @ 2020-02-06 18:33 我是个好孩子 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int n,i,j,ch[15][15],v,k; char *nl = ""; while(scanf("%d",&n)!=EOF) { printf("%s",nl) ; nl = "\n"; for(i=1;i<=n;i++) { 阅读全文
posted @ 2020-02-05 16:24 我是个好孩子 阅读(346) 评论(0) 推荐(0) 编辑