会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
50-陈江焕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2015年4月3日
作业1提升题
摘要: #include #include #include main( ){ int i; int a,b,c,e,g,f,j; int k,d,h; float u,v; char p; int count=0; srand( (unsigned in...
阅读全文
posted @ 2015-04-03 22:36 50-陈江焕
阅读(109)
评论(2)
推荐(0)
2015年3月31日
作业1修改版(可计算)
摘要: #include #include #include main( ){ int i; int a,b,c,d,e; int count=0; srand( (unsigned)time( NULL ) ); for(i=1;i<31;i++) { a=rand()%10+1; ...
阅读全文
posted @ 2015-03-31 17:05 50-陈江焕
阅读(111)
评论(3)
推荐(0)
2015年3月25日
随机生成四则运算
摘要: 心得: 在编程过程中遇到的最大的问题就是随机数的产生问题。在c语言中函数rand()可以用来产生随机数,但是它缺不是一个真正的随机数,需要用到srand()函数。所以我用srand( (unsigned)time( NULL ) )这段代码来解决随机数的产生问题。rand()的随机范围在0到3276...
阅读全文
posted @ 2015-03-25 19:46 50-陈江焕
阅读(169)
评论(3)
推荐(0)
上一页
1
2
公告