㈠ vfp中怎么写分段给成绩等级的程序 用三种循环结构分别
For循环的代码:
set talk off
use 成绩
for i=1 to recc()
cj=平时成绩*0.2+考试成绩*0.8
do case
case cj>=90
dj="优"
case cj>=75
dj="良"
case cj>=60
dj="及格"
otherwise
dj="不及格"
endcase
repl 等级 with dj
skip
endfor
use
set talk on