| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1738 人关注过本帖
标题:求助,问别人要的一个高考分数分段的程序,这些代码什么意思,需要怎么用啊
取消只看楼主 加入收藏
qq957221564
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2016-11-7
结帖率:0
收藏
 问题点数:0 回复次数:1 
求助,问别人要的一个高考分数分段的程序,这些代码什么意思,需要怎么用啊
USE gk2016yj
set dele on
SET TALK OFF
zsl=18723
    km='zkcj'
    INDE ON -&km TO in1
*1/6
    sl=zsl/6
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*2/6
    sl=2*zsl/6
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*3/6
    sl=3*zsl/6
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*4/6
    sl=4*zsl/6
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*5/6
    sl=5*zsl/6
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*6/6
    sl=zsl
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*1+1/3
    sl=zsl*(1+1/3)
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*1+2/3
    sl=zsl*(1+2/3)
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
*2
    sl=2*zsl
    GO TOP
    SKIP sl-1
    zz1=&km
    COUN FOR &km>zz1 TO x1
    COUN FOR &km>=zz1 TO x2
    xx=IIF(sl-x1<x2-sl,x1,x2)
    ?km+SPAC(2)+STR(xx,5)+'人:  '
        IF xx=x1
            COUN FOR &km>zz1 TO a
        ELSE
            COUN FOR &km>=zz1 TO a
        ENDIF
        go top
        skip a-1
        jzf=&km
        ??STR(jzf,3)+SPAC(2)
retu
搜索更多相关主题的帖子: 高考分数 
2016-12-07 14:23
qq957221564
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2016-11-7
收藏
得分:0 
回复 3楼 cxzbzgz
谢谢亲的帮助
2016-12-08 09:48
快速回复:求助,问别人要的一个高考分数分段的程序,这些代码什么意思,需要怎么 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024772 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved