• <em id="6vhwh"><rt id="6vhwh"></rt></em>

    <style id="6vhwh"></style>

    <style id="6vhwh"></style>
    1. <style id="6vhwh"></style>
        <sub id="6vhwh"><p id="6vhwh"></p></sub>
        <p id="6vhwh"></p>
          1. 国产亚洲欧洲av综合一区二区三区 ,色爱综合另类图片av,亚洲av免费成人在线,久久热在线视频精品视频,成在人线av无码免费,国产精品一区二区久久毛片,亚洲精品成人片在线观看精品字幕 ,久久亚洲精品成人av秋霞

            打字程序源代碼

            更新時(shí)間:2023-12-11 18:58:51 閱讀: 評(píng)論:0

            2023年12月11日發(fā)(作者:文明近義詞)

            -

            打字程序源代碼

            #include "stdio.h"

            #include "conio.h"

            #include "stdlib.h"

            #include "dos.h"

            void hidecursor() /* 隱藏光標(biāo) */

            {

            union REGS r1,r2;

            =0x100;

            =-1;

            int86(16,&r1,&r2);

            }

            void showcursor() /* 顯示光標(biāo) */

            {

            union REGS r1,r2;

            =0x100;

            =0x0c0d;

            int86(16,&r1,&r2);

            }

            main()

            {

            int x,y,i,t,a[3],n,*p,k,m=1,q,t3,t4;

            char b[100],c[1000],d[1000];

            struct time t1,t2;

            float accuracy,right=0,wrong=0;

            FILE* p1,p2,p3;

            randomize();

            textcolor(14);

            for(x=1,y=1;x<=80;x++)

            {

            gotoxy(x,y);

            putch(205);

            }

            for(x=1,y=20;x<=29;x++)

            {

            gotoxy(x,y);

            putch(205);

            }

            for(x=1,y=24;x<=79;x++)

            {

            gotoxy(x,y);

            putch(205);

            } for(x=1,y=2;y<=24;y++)

            {

            gotoxy(x,y);

            putch(186);

            }

            for(x=29,y=2;y<=24;y++)

            {

            gotoxy(x,y);

            putch(186);

            }

            for(x=80,y=24;y>=2;y--)

            {

            gotoxy(x,y);

            putch(186);

            }

            gotoxy(1,1);

            putch(201);

            gotoxy(29,1);

            putch(203);

            gotoxy(80,1);

            putch(187);

            gotoxy(1,20);

            putch(204);

            gotoxy(29,20);

            putch(185);

            gotoxy(1,24);

            putch(200);

            gotoxy(29,24);

            putch(202);

            gotoxy(80,24);

            putch(188);

            gotoxy(3,22);

            cprintf("Level:1 Start Exit");

            gotoxy(6,3);

            cprintf("<< High Scores >>");

            p=b;

            n='a';

            for(i=0;i<=100;i++)

            {

            b[i]=n;

            n++;

            if(n=='z'+1)

            n='A'; if(n=='Z'+1)

            {b[++i]=' ';

            n='0';

            i++;

            for(t=0;t<10;t++)

            b[i++]=n++;

            b[i++]=',';

            b[i++]=';';

            b[i++]='.';

            b[i++]=''';

            b[i++]='/';

            b[i++]='-';

            b[i++]='=';

            b[i++]='~';

            b[i++]='!';

            b[i++]='@';

            b[i++]='#';

            b[i++]='$';

            b[i++]='%';

            b[i++]='^';

            b[i++]='&';

            b[i++]='*';

            b[i++]='(';

            b[i++]=')';

            b[i++]='+';

            b[i++]='<';

            b[i++]='>';

            b[i++]='?';

            break;}

            } textcolor(14);

            textbackground(0);

            gotoxy(30,13);

            cprintf(" Press UP/DOWN arrow to change Level.

            gotoxy(10,22);

            t=1;

            textcolor(0);

            textbackground(15);

            gotoxy(3,22);

            cprintf("Lever:%d",m);

            n=1;

            XU:

            while(1) {

            if(t==1)

            "); while(1){ k=bioskey(0);

            textcolor(0);

            textbackground(15);

            if(k==0x4800)

            m++;

            if(k==0x5000)

            m--;

            if(m<1)

            m=3;

            if(m>3)

            m=1;

            gotoxy(9,22);

            cprintf("%d",m);

            if(k==0x4b00)

            {t=3;

            goto XZ;

            }

            if(k==0x4d00)

            {

            t=2;

            goto XZ;

            }

            }

            if(bioskey(1)){

            k=bioskey(0);

            if(k==0x11b)

            break;

            if(k==0x4b00)

            t--;

            if(k==0x4d00)

            t++;

            if(t<1)

            t=3;

            if(t>3)

            t=1;

            XZ: textcolor(14);

            textbackground(0);

            if(n==1)

            {gotoxy(3,22);

            cprintf("Lever:%d",m);}

            if(n==2) {gotoxy(13,22);

            cprintf("Start");}

            if(n==3)

            {gotoxy(22,22);

            cprintf("Exit");}

            textcolor(0);

            textbackground(15);

            if(t==1)

            {gotoxy(3,22);

            cprintf("Lever:%d",m);

            n=t;

            gotoxy(30,13);

            textcolor(14);

            textbackground(0);

            cprintf(" Press UP/DOWN arrow to change Level.

            gotoxy(11,22);

            }

            if(t==2)

            {gotoxy(13,22);

            cprintf("Start");

            n=t;

            gotoxy(30,13);

            textcolor(14);

            textbackground(0);

            cprintf(" Get ready ... ... GO!

            gotoxy(18,22);

            }

            if(t==3)

            {gotoxy(22,22);

            cprintf("Exit");

            n=t;

            gotoxy(30,13);

            textcolor(14);

            textbackground(0);

            cprintf(" Exit this game

            gotoxy(26,22);

            }

            if(k==0x1c0d)

            {if(t==2)

            goto SHUCHU;

            if(t==3)

            ");

            ");

            ");

            exit(0);

            }

            }

            }

            SHUCHU: /*輸出打字內(nèi)容*/

            for(x=30,y=2,q=0;y<23;x++,q++)

            {

            i=m-1;

            a[0]=random(53);

            a[1]=random(67);

            a[2]=random(85);

            gotoxy(x,y);

            printf("%c",b[a[i]]);

            d[q]=b[a[i]];

            if(x==79)

            x=29,y+=2;

            }

            for(x=30,y=3,q=0;y<23;x++,q++)

            {

            gotoxy(x,y);

            printf(" ");

            if(x==79)

            x=29,y+=2;

            }

            gettime(&t1);

            for(x=30,y=3,i=0;y<24;) /*開始打字*/

            {

            k=bioskey(0);

            if(k==0x11b)

            {gettime(&t2);

            textcolor(9);

            textbackground(7);

            for(x=39,y=8;x<71;x++)

            {

            gotoxy(x,y);

            putch(196);

            }

            for(x=39,y=18;x<71;x++)

            {

            gotoxy(x,y);

            putch(196);

            }

            for(x=38,y=9;y<18;y++) {

            gotoxy(x,y);

            putch(179);

            }

            for(x=71,y=9;y<18;y++)

            {

            gotoxy(x,y);

            putch(179);

            }

            gotoxy(38,8);

            putch(218);

            gotoxy(71,8);

            putch(191);

            gotoxy(38,18);

            putch(192);

            gotoxy(71,18);

            putch(217);

            gotoxy(52,8);

            cprintf(" SCORE ");

            for(x=39,y=9;y<18;x++)

            {

            gotoxy(x,y);

            putch(' ');

            if(x==70)

            {

            x=38;

            y++;

            }

            }

            gotoxy(45,10);

            t3=(__hour)*60+__min;

            t4=__c;

            if(t4<0)

            t3--,t4=60+t4;

            if(t3*60+t4>600)

            cprintf(">10 mintes");

            el

            cprintf("time: %d'%d"",t3,t4);

            gotoxy(43,12);

            accuracy=right/(right+wrong);

            cprintf("Accuracy : %.1f%%",accuracy*100);

            gotoxy(45,13);

            cprintf("Score : %.0f",right*accuracy*1000/(t3*60+t4));

            getch();

            for(x=30,y=2;y<24;x++,q++)

            {textcolor(7);

            textbackground(0);

            gotoxy(x,y);

            cprintf(" ");

            if(x==79)

            x=29,y++;

            }

            gotoxy(30,13);

            textcolor(14);

            textbackground(0);

            cprintf("

            gotoxy(18,22);

            gotoxy(18,22);

            goto XU;

            }

            el if(k!=0xe08)

            {

            c[i++]=k;

            c[i-1]=c[i-1]&0xff;

            gotoxy(x,y);

            if(d[i-1]==c[i-1])

            {

            textcolor(15);

            textbackground(0);

            right++;

            cprintf("%c",c[i-1]);

            }

            el {

            textcolor(12);

            textbackground(0);

            cprintf("%c",c[i-1]);

            wrong++;

            }

            if(x==79)

            x=29,y+=2;

            x++;

            Get ready ... ... GO! ");

            }

            el if(k==0xe08)

            {

            if(i==0)

            ;

            el if(x==30&y==3)

            ;

            el

            {

            if(x==30)

            x=80, y-=2;

            x--;

            if(c[i-1]==d[i-1])

            right--;

            el

            wrong--;

            c[--i]=' ';

            gotoxy(x,y);

            cprintf("%c",c[i]);

            gotoxy(x,y);

            }

            }

            }

            getch();

            }

            -

            打字程序源代碼

            本文發(fā)布于:2023-12-11 18:58:50,感謝您對(duì)本站的認(rèn)可!

            本文鏈接:http://www.newhan.cn/zhishi/a/1702292331118510.html

            版權(quán)聲明:本站內(nèi)容均來自互聯(lián)網(wǎng),僅供演示用,請(qǐng)勿用于商業(yè)和其他非法用途。如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除。

            本文word下載地址:打字程序源代碼.doc

            本文 PDF 下載地址:打字程序源代碼.pdf

            標(biāo)簽:打字   光標(biāo)   程序
            留言與評(píng)論(共有 0 條評(píng)論)
               
            驗(yàn)證碼:
            推薦文章
            排行榜
            Copyright ?2019-2022 Comsenz Inc.Powered by ? 實(shí)用文體寫作網(wǎng)旗下知識(shí)大全大全欄目是一個(gè)全百科類寶庫! 優(yōu)秀范文|法律文書|專利查詢|
            主站蜘蛛池模板: 欧美一本大道香蕉综合视频| 自拍视频在线观看成人| 日日躁狠狠躁狠狠爱| 色欲AV成人无码精品无码| 久久夜色精品亚洲国产av| 久久精品国产99久久六动漫| 亚洲一区二区中文av| 人妻少妇精品中文字幕| 67194熟妇在线观看线路| 日韩精品一卡二卡在线观看| 欧美亚洲另类制服卡通动漫| av 日韩 人妻 黑人 综合 无码 | 成人国产片视频在线观看| 国产一区男女男无遮挡| 免费日韩av网在线观看| 成人午夜电影福利免费| 久久国产亚洲精选av| 成全观看高清完整版免费动漫电影| 在线观看国产一区亚洲bd| 色伦专区97中文字幕| 久久国内精品自在自线91| 国产精品爽黄69天堂A| 精品视频国产香蕉尹人视频| 亚洲第一极品精品无码久久| 亚洲色成人WWW永久在线观看| 精品一区二区成人码动漫| 久久99久国产精品66| 久久精品国产亚洲av亚| 无码国模国产在线观看免费 | 日韩乱码人妻无码中文字幕视频 | 真实国产老熟女无套中出| 高清无码在线视频| 久久久久亚洲精品美女| 中国女人熟毛茸茸A毛片| 国产精品久久久久9999| 精品免费看国产一区二区| 一边捏奶头一边高潮视频| 九九热在线观看精品视频| 姝姝窝人体色WWW在线观看| 久久精品夜色噜噜亚洲av| 日本精品极品视频在线|