会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我是个好孩子
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2020年2月10日
1766: 十进制转换为其它进制
摘要: #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 我是个好孩子
阅读(148)
评论(0)
推荐(0)
2020年2月9日
1763: 职工信息插入
摘要: #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 我是个好孩子
阅读(180)
评论(0)
推荐(0)
1761: 学生信息删除
摘要: #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 我是个好孩子
阅读(295)
评论(0)
推荐(0)
1760: 学生信息查找
摘要: #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 我是个好孩子
阅读(164)
评论(0)
推荐(0)
1759: 学生信息插入(武汉科技大学结构体oj)(已AC)
摘要: #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 我是个好孩子
阅读(272)
评论(0)
推荐(0)
1757: 成绩稳定的学生(武汉科技大学结构体oj)
摘要: #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 我是个好孩子
阅读(213)
评论(0)
推荐(0)
2020年2月6日
1755: N相关孪生素数
摘要: #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 我是个好孩子
阅读(148)
评论(0)
推荐(0)
1752: 学生数据排序
摘要: #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 我是个好孩子
阅读(177)
评论(0)
推荐(0)
1751: n个素数构成等差数列
摘要: #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 我是个好孩子
阅读(183)
评论(0)
推荐(0)
2020年2月5日
1233: 输出杨辉三角前n行
摘要: #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 我是个好孩子
阅读(354)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告