摘要:
#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 阅读全文
摘要:
#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(" 阅读全文
摘要:
#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 阅读全文
摘要:
#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 % 阅读全文
摘要:
#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 % 阅读全文
摘要:
#include<stdio.h>#include<string.h>struct student{ long no; char name[9]; int ch[20]; int count;//多定义一个count来看某个学生是不是每科的成绩都大于平均值 }read(struct student 阅读全文
摘要:
#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[ 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#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++) { 阅读全文