会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
薛子煜
博客园
首页
新随笔
联系
管理
订阅
2019年6月19日
实验十:指针
摘要: //在数组中查找指定元素// #include<stdio.h>int search(int list[],int n,int x);int main(void){ int i,n,res,x; int a[10]; printf("Input n:"); scanf("%d",&n); for(i
阅读全文
posted @ 2019-06-19 14:42 薛子煜
阅读(188)
评论(0)
推荐(0)
2019年6月11日
作业九:杨辉三角
摘要: 杨辉三角 #include<stdio.h>int main(){int i,j,n;int a[100][100];printf("输入n行:"); /*输入杨辉三角的行数*/scanf("%d",&n);a[0][0]=1; /*第一行,第一列为1*/for(i=0;i<n;i++){a[i][
阅读全文
posted @ 2019-06-11 20:50 薛子煜
阅读(133)
评论(0)
推荐(0)
2019年6月10日
第八次作业
摘要: 1、输入一个正整数n(1<n<=10),再输入n个整数,按从大到小的顺序输出。 #include<stdio. int main() { int n,i,k,temp,index; int a[10]; printf("输入一个正整数n:"); //输入一个数// scanf("%d",&n); p
阅读全文
posted @ 2019-06-10 22:21 薛子煜
阅读(153)
评论(0)
推荐(0)
2019年5月28日
作业七
摘要: 使用函数输出指定范围内的完数:输入两个正整数m和n (1<=n,, n<=1 000), 输出m~n之间的所有完数,完数就是因子和与它本身相等的数。要求定义并调用函数 umn (number) ,它的功能是返回number的因子和。例如, factorsum (12)的返回 值是16 (1+2+3+
阅读全文
posted @ 2019-05-28 21:15 薛子煜
阅读(216)
评论(0)
推荐(0)
2019年5月8日
作业六
摘要: 这个程序需要用循环嵌套实现,并且需要调用函数prime(m),要用函数实现对素数的判断;由于我对程序的不熟悉,所有在过程中有许多的错误在同学的帮助下,把一个个错误纠正过来了。以后还需要我多勤加练习 #include<stdio.h>#include<math.h>int prime(int m);i
阅读全文
posted @ 2019-05-08 17:10 薛子煜
阅读(119)
评论(0)
推荐(0)
2019年4月10日
第四次作业
摘要: #include<stdio.h> int main(void) { int i; double m,t,c; printf("Enter mile and time:\n"); scanf("%lf%lf",&m,&t); i=t/5; if(m<=3) c=10+2*i; else if(m>3
阅读全文
posted @ 2019-04-10 22:33 薛子煜
阅读(99)
评论(0)
推荐(0)
2019年4月1日
实验三:求一元二次方程的根
摘要:
阅读全文
posted @ 2019-04-01 22:19 薛子煜
阅读(125)
评论(1)
推荐(0)
2019年3月19日
第二次作业
摘要:
阅读全文
posted @ 2019-03-19 22:33 薛子煜
阅读(161)
评论(0)
推荐(0)
2019年3月13日
VC++6.0安装步骤
摘要: VC++6.0安装步骤 1、在百度中搜索安装文件的压缩包 2、解压安装文件的压缩包 3、然后选择安装的版本 4、程序安装完毕,将图标发送到桌面,这样就可以直接在 桌面上运行程序 5、点开程序,程序运行正常
阅读全文
posted @ 2019-03-13 16:29 薛子煜
阅读(291)
评论(1)
推荐(0)
公告