| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 910 人关注过本帖
标题:[求助]一道老潭书上的题
取消只看楼主 加入收藏
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
 问题点数:0 回复次数:2 
[求助]一道老潭书上的题
有50个学生,要求将他们之中成绩在80分以上者打印出来.用N表示学号,N1代表第一个学生学号,NI 代表第I个学生学号,用g代表学生成绩,gi代表第I个学生成绩,算法可表示如下.
S1:1=>I
S2:如果GI大余等于80,则打印NI和GI,否则不打印
S3:I+1=>I
S4:如果I小于等于50,返回S2,继续执行;否则结束

大家能不能提供一个最简单的解答方法,用前面的知识,(本人是初学者,后面的语句看不懂)
搜索更多相关主题的帖子: 学生 大余 
2006-07-19 10:12
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 
大家能不能提供一个最简单的解答方法,用前面的知识,(本人是初学者,后面的语句看不懂)


FOR是什么意思.?

/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-21 14:10
月影骑士
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2006-7-18
收藏
得分:0 

就是刚刚看到,老潭的书上这个例题,但是我不会解答

楼上的 前辈 都是用后面的知识解答 所以我看不懂


/priest_ms/58701079/1603639243.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img503.photo./priest_ms/58701079/1603639243.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2006-07-21 17:27
快速回复:[求助]一道老潭书上的题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012661 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved