统计“人才档案”数据表中工资超过7000元的人数
(1)编写程序代码如下
clear
use人才档案.dbf Exclusive
go top
rc=0
do while .not.eof()
if 工资状况>7000
rc=rc+1
endif
skip
enddo
@2,30 say"工资在7000元以上的人数:"
@2,60 say rc
use
(2)还是上面的那题
clear
use 人才档案.dbf
count all to jls
go top
rc=0
for i=1 to jls step 1
if 工资状况>=7000
rc=rc+1
endif
skip
endfor
@2,30 say"工资在7000元以上的人数:"
@2,60 say rc
use
本人基础差,请详细解答