这个编程怎么用命令

来源:百度知道 编辑:UC知道 时间:2024/06/24 13:30:22
根据表stcj.dbf中的成绩修改综合测评,stcj.dbf表中有多少门课程成绩在90分以上(含90分),综合测评就加多少分;

clear
clear all
set safe off
sele 2
use stcj
sele 1
use stud
repl all
综合测评 with 85
go top
do while .not.eof()
xh=学号
sele 2
locate for
学号=xh
n=0
do while .not.eof()
if 成绩>=90
n=n+1
endif
cont
enddo
sele 1
repl 综合测评 with 综合测评 +n
skip
enddo
index on 综合测评 tag cp desc
?"综合测评成绩排位情况"
?"姓名 性别 出生年月 综合测评"
do while .not.eof()
?姓名,space(2),性别,space(4),出生年月,space(4),综合测评
skip
enddo
close all