string strshow double s s=double(sle_1.text) choose case s case 0 to 59 strshow="你这家伙!"case 60 to 69 strshow="恭喜你,及格了"case 70 to 79 strshow="成绩平平,只是中等" case 80 to 89 strshow="不错不错,成绩良好,继续加油"

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/28 00:03:58
stringstrshowdoubless=double(sle_1.text)choosecasescase0to59strshow="你这家伙!"case60to69strshow="恭喜你,及格

string strshow double s s=double(sle_1.text) choose case s case 0 to 59 strshow="你这家伙!"case 60 to 69 strshow="恭喜你,及格了"case 70 to 79 strshow="成绩平平,只是中等" case 80 to 89 strshow="不错不错,成绩良好,继续加油"
string strshow
double s
s=double(sle_1.text)
choose case s
case 0 to 59 strshow="你这家伙!"
case 60 to 69 strshow="恭喜你,及格了"
case 70 to 79 strshow="成绩平平,只是中等"
case 80 to 89 strshow="不错不错,成绩良好,继续加油"
case 90 to 100 strshow="哇哇,你是最棒,最优秀的"
end choose
运行的时候提示语法错误!case 0 to 59 strshow="你这家伙!" 这句提示的!

string strshow double s s=double(sle_1.text) choose case s case 0 to 59 strshow="你这家伙!"case 60 to 69 strshow="恭喜你,及格了"case 70 to 79 strshow="成绩平平,只是中等" case 80 to 89 strshow="不错不错,成绩良好,继续加油"
string strshow
double s
s=double(sle_1.text)
choose case s
case 0 to 59
strshow="你这家伙!"
case 60 to 69
strshow="恭喜你,及格了"
case 70 to 79
strshow="成绩平平,只是中等"
case 80 to 89
strshow="不错不错,成绩良好,继续加油"
case 90 to 100
strshow="哇哇,你是最棒,最优秀的"
end choose
这样就对了,case 那一列不能包含其他,只能是条件