会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王克辉
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2019年6月24日
第十一次作业
摘要: 第一题 建立一个通信录,通信录的结构体记录包括:姓名、生日、电话号码;其中生日又包括三项:年、月、日。编写程序,输入n(n<10)个联系人的信息,再按他们的年龄大小的顺序依次输出其信息。 源程序 /*通讯录排序*/#include<stdio.h>#include<string.h>void pai
阅读全文
posted @ 2019-06-24 22:17 投篮命中
阅读(224)
评论(1)
推荐(0)
2019年6月19日
第十次作业
摘要: p214 第三题的第1题 /*拆分实数的整数与小数部分*/#include<stdio.h>void splitfloat(float x,int *intpart,float *fracpart);int main(){ int intpart; float x,fracpart; printf(
阅读全文
posted @ 2019-06-19 21:15 投篮命中
阅读(158)
评论(0)
推荐(0)
2019年6月11日
第九次作业
摘要: /*杨辉三角*/#include <stdio.h>void main(){ int i, j, k, n=0;/*定义二维数组a[i][j]*/ int a[12][12]; /*控制打印的行数*/ while(n<=0||n>=11){ printf("请输入要打印的行数:"); scanf("
阅读全文
posted @ 2019-06-11 19:26 投篮命中
阅读(156)
评论(0)
推荐(0)
2019年6月10日
第八次作业
摘要: /*选择法排序。输入一个正整数n(1<n<=10),再输入n个整数,将他们从大到小排序后输出。试编写相应程序。*/#include<stdio.h>int main (void){ int i,index,k,n,t; int a[10]; printf("请输入要输入数据的个数n:"); scan
阅读全文
posted @ 2019-06-10 20:05 投篮命中
阅读(146)
评论(1)
推荐(0)
2019年5月27日
第七次作业
摘要: p145第三题第三小题 #include<stdio.h>int main(){ int i,m,n; int foctorsum(int number); printf("请输入你的m,n"); scanf("%d%d",&m,&n); for(i=m;i<=n;i++) if(foctorsum
阅读全文
posted @ 2019-05-27 22:10 投篮命中
阅读(165)
评论(2)
推荐(0)
2019年5月6日
第六次作业
摘要: #include<stdio.h> #include<math.h> int prime(int m); int main(void) { int m,n,count,sum; count=0; sum=0; printf("请输入 m,n(1<=m,n<=500):\n"); scanf("%d%
阅读全文
posted @ 2019-05-06 22:36 投篮命中
阅读(135)
评论(1)
推荐(0)
2019年4月16日
第五次作业(最大公约数,最小公倍数)
摘要: #include<stdio.h>int main(void){int m,n,i,X,Y;/*X代表最大公约数;Y代表最小公倍数*/printf("输入两个数m,n:");scanf("%d%d",&m,&n);if(m<=1000&&n<=1000)for(i=1;i<=m&&i<=n;i++)
阅读全文
posted @ 2019-04-16 17:40 投篮命中
阅读(204)
评论(1)
推荐(0)
2019年4月10日
第四次作业源程序
摘要: 三角形判断! #include<stdio.h>#include<math.h>int main(){ double x1,x2,x3,y1,y2,y3,a,b,c,area,s,C;; printf("Enter x1,y1:"); scanf("%lf%lf,&x1,&y1); printf("
阅读全文
posted @ 2019-04-10 14:10 投篮命中
阅读(132)
评论(1)
推荐(0)
第四次作业
摘要:
阅读全文
posted @ 2019-04-10 13:47 投篮命中
阅读(98)
评论(0)
推荐(0)
2019年4月1日
第三次作业(C语言)
摘要:
阅读全文
posted @ 2019-04-01 16:32 投篮命中
阅读(117)
评论(0)
推荐(0)
1
2
下一页
公告