Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » 编程/算法/API  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:case 语句 求救 [Re:wuyoubei1]
nik





发贴: 2
积分: 0
于 2005-09-12 17:17 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list

int tmp = score/10;
if(tmp > 10)
tmp = 10;
switch(tmp)
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5: // code of score < 60 && score >= 0
break;
case 6: // code of score <70 && score >=60
break;
case 7: // code of score < 80 && score >= 70
break;
case 8: // code of score < 90 && score >= 80
break;
case 9: // code of score < 100 && score >= 90
break;
case 10: // code of score >= 100
break;
default: // code of exception case
}


why edited on 2005-09-12 19:48


话题树型展开
人气 标题 作者 字数 发贴时间
11012 case 语句 求救 wuyoubei1 256 2005-09-08 13:16
9195 Re:case 语句 求救 why 423 2005-09-08 13:39
9558 Re:case 语句 求救 wuyoubei1 56 2005-09-08 16:35
9341 Re:case 语句 求救 why 503 2005-09-08 21:19
9083 Re:case 语句 求救 ge_zwj83 10 2005-09-09 11:24
8953 Re:case 语句 求救 why 201 2005-09-09 11:35
9468 Re:case 语句 求救 wuyoubei1 4 2005-09-09 12:59
9078 Re:case 语句 求救 nik 602 2005-09-12 17:17
9116 Re:case 语句 求救 nik 12 2005-09-12 17:18
9403 Re:case 语句 求救 why 122 2005-09-12 19:49

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923