会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朱生平
博客园
首页
新随笔
联系
订阅
管理
2019年6月25日
第十一次作业
摘要: #include<stdio.h>struct students_jia{ char name[10]; int birthday; char phone[15]; };void sort(struct students_jia s[],int n){ int i,j; struct student
阅读全文
posted @ 2019-06-25 19:21 朱生平
阅读(115)
评论(0)
推荐(0)
2019年6月19日
第十次作业
摘要: 1.拆分实数 #include"stdio.h"void splidfloat(float x,int*intpart,float*fracpart);int main(){float x,f=0;int i=0;float*pf=&f;int*pi=&i;printf("Enter x:");sc
阅读全文
posted @ 2019-06-19 20:26 朱生平
阅读(150)
评论(0)
推荐(0)
2019年6月11日
杨辉三角
摘要: #include <stdio.h> int main() { int i,j; int n,a[100][100]={0}; while(n<1||n>99){ printf("Enter n(0<n<100):"); scanf("%d",&n); } for(i=0;i<n;i++) a[i]
阅读全文
posted @ 2019-06-11 23:18 朱生平
阅读(126)
评论(1)
推荐(0)
2019年5月28日
第七次作业
摘要: 3.使用函数输出指定范围内的完数:输入两个正整数m和n(1≤m,n=≤100输出m-n之间的所有完数,完数就是因子和与它本身相等的数。要求定义并调用函数它的功能是返回的因子和。例如的返回值是16(1+2+3+4+6)。试编写相应程序。 #include<stdio.h>#include<math.h
阅读全文
posted @ 2019-05-28 21:34 朱生平
阅读(160)
评论(0)
推荐(0)
2019年5月7日
第六次作业
摘要: #include<stdio.h>#include<math.h>int prime(int y);int main(void){ int count,sum,m,n,y,q; printf("Enter m,n(1<=m,n<=500):"); scanf("%d%d",&m,&n); if(m>
阅读全文
posted @ 2019-05-07 20:06 朱生平
阅读(139)
评论(1)
推荐(0)
2019年4月16日
第五次作业
摘要: 通过这次作业,发现还是上机练习太少了,还是得经常上机练习,也进一步加深理解掌握了循环语句的运用。 #include<stdio.h>int main(){ int m,n,a,b,c; scanf("%d%d",&m,&n); if(0<m&&m<=1000&&0<n&&n<=1000){ if(m
阅读全文
posted @ 2019-04-16 21:07 朱生平
阅读(94)
评论(1)
推荐(0)
2019年4月10日
第四次作业
摘要: #include<stdio.h>int main(void){int s,t,$; scanf("%d%d",&s,&t);if(s<=3) if(t<5){printf("$=10\n"); return 0;} else{ printf("$=%d",10+t/5*2); return 0;
阅读全文
posted @ 2019-04-10 19:37 朱生平
阅读(110)
评论(1)
推荐(0)
2019年4月1日
第三次C语言作业
摘要:
阅读全文
posted @ 2019-04-01 22:27 朱生平
阅读(100)
评论(0)
推荐(0)
2019年3月19日
2 C语言作业
摘要: 在编写过程中用模仿的方式,很快就编出程序了,就是调试过程有点问题,调了很长时间,通过问别人,也就解决了。
阅读全文
posted @ 2019-03-19 20:13 朱生平
阅读(176)
评论(0)
推荐(0)
2019年3月12日
C语言作业
摘要: 步骤1、解压VC6.0后,双击文件夹下的setup.exe,依次点击【下一步】;  步骤2、选择【typical】,直到vc6.0安装完成;  步骤3、vc6.0安装完成后,需要安装MSDN,打开安装程序;  步骤4、选择【continue】,输入名称,一直点确定,再选择【typical】,等
阅读全文
posted @ 2019-03-12 20:33 朱生平
阅读(184)
评论(1)
推荐(0)
公告