易码技术论坛

 找回密码
 加入易码
搜索
查看: 204122|回复: 9

[讨论]System.PY2GB是不是所有机型都适用?

[复制链接]
发表于 2005-9-9 23:19:00 | 显示全部楼层
System.PY2GB系LavaX3.0的函数,目前只有TC800可以用
 楼主| 发表于 2005-9-9 23:41:00 | 显示全部楼层
……不是吧……那我任务系统岂不是要重编???哦我的女神……
发表于 2005-9-10 00:32:00 | 显示全部楼层
....-_-b

在GVMaker机子上面最保险的办法就是用GVMaker编译器来编译。这样就可以保证能用了……
发表于 2005-9-10 06:41:00 | 显示全部楼层
将错就错了,干脆先在800上搞个灰度的出来。
发表于 2005-9-10 09:26:00 | 显示全部楼层
3.0只有TC800支持啊
 楼主| 发表于 2005-9-10 13:03:00 | 显示全部楼层
我开始就是竟GVMaker的,9000+句后无法编译才转用3.0的……
发表于 2005-9-17 11:29:00 | 显示全部楼层
LAVA2IDE试过了?
发表于 2005-12-13 19:19:00 | 显示全部楼层
希望高手编一个文本编辑器LAVA下的,
发表于 2005-12-14 17:39:00 | 显示全部楼层
用LavaXIde,没错的。
 楼主| 发表于 2005-9-9 21:39:43 | 显示全部楼层 |阅读模式
如题

我的nc2000上用到就自动关机……

这是原代码有点乱表介意……

#define KEY_U 20<BR>#define KEY_L 23<BR>#define KEY_R 22<BR>#define KEY_D 21

#define KEY_F2 29<BR>char str[20];<BR>void inputw()<BR>{<BR>    char i,ii,c,pinyin[10];<BR>    char s[20];<BR>    int id,sum;<BR>    long t;<BR>    char n;<BR>    char out;<BR>    char word[2];<BR> out=0;<BR>    pinyin[0]=0;<BR>    i=0;<BR>    id=0;<BR>    sum=0;<BR>    ClearScreen();<BR>    TextOut(2,67,"拼",1);<BR>    Block(1,66,13,78,2);<BR>    Refresh();<BR>    for (;;) <BR>    {<BR>        Block(0,0,159,12,0);<BR>        TextOut(0,0,str,1);<BR>        Refresh();<BR>        c=getchar();<BR>        if (c==KEY_L)<BR>        {<BR>            if (i)<BR>            {<BR>                pinyin[--i]=0;<BR>                id=0;<BR>                sum=0;<BR>            }<BR>        } else if (c==KEY_D) <BR>        {<BR>            if (id+9<sum) id=id+9;<BR>        } <BR>        else if (c==KEY_U) <BR>        {<BR>            if (id>9) id=id-9;<BR>            else id=0;<BR>        } <BR>        else if (c>='a' && c<='z') <BR>        {<BR>            if (i<6) <BR>            {<BR>                pinyin[i++]=c;<BR>                pinyin=0;<BR>                id=0;<BR>                sum=0;<BR>            }<BR>        }<BR>        else if (c==27) <BR>        {<BR>         out=1;<BR>        }<BR>        else if (c==KEY_F2&&strlen(str)>0) <BR>        {<BR>         memmove(str+strlen(str)-2,"",2);<BR>        }<BR>        Block(15,67,159,79,0);<BR>        TextOut(15,67,pinyin,1);<BR>        t=System.PY2GB(id,pinyin,s);<BR>        if (t!=-1) <BR>        {<BR>            sum=t>>16;<BR>            TextOut(52,67,s,1);<BR>        }<BR>        Refresh();<BR>        Inkey();<BR>        if (c==13&&t!=-1)<BR>        {<BR>         n=0;<BR>         for (;;)<BR>         {<BR>          Block(0,0,159,12,0);<BR>          TextOut(0,0,str,1);<BR>          Block(15,67,159,79,0);<BR>          TextOut(15,67,pinyin,1);<BR>          t=System.PY2GB(id,pinyin,s);<BR>          if (t!=-1) <BR>          {<BR>              sum=t>>16;<BR>              TextOut(52,67,s,1);<BR>          }<BR>          Block(52+n*12,67,63+n*12,78,2);<BR>          Refresh();<BR>          c=getchar();<BR>          if (n>0&&c==KEY_U) n--; <BR>          if (n<9&&c==KEY_D) n++;<BR>          if (c==13&&t!=-1) <BR>          {<BR>           memcpy(word,s+n*2,2);<BR>           if (strlen(str)<20) sprintf(str,"%s%s",str,word);<BR>           for (ii=0;ii<10;ii++)<BR>           {<BR>            pinyin[ii]=0;<BR>            i=0;<BR>            id=0;<BR>            sum=0;<BR>            Block(15,67,159,79,0);<BR>           }<BR>           break;<BR>          }<BR>         }<BR>        }<BR>    if (out==1) break;<BR>    }<BR>}<BR>void main()<BR>{<BR> inputw();<BR> TextOut(0,20,str,1);<BR> Refresh();<BR>}
您需要登录后才可以回帖 登录 | 加入易码

本版积分规则

Archiver|手机版|小黑屋|EMAX Studio

GMT+8, 2025-8-25 03:28 , Processed in 0.011103 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表