• <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://m.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| 国产av永久无码天堂影院 | 精品国产人妻一区二区三区久久| 脱岳裙子从后面挺进去视频| 亚洲中文精品一区二区| 国产精品成人午夜福利| 国产毛片子一区二区三区| 乱人伦中文视频在线| 日日碰狠狠添天天爽超碰97| 国产JJIZZ女人多水喷水| 麻豆av字幕无码中文| 日韩有码国产精品一区| 欧美日本在线一区二区三区| 无码人妻精品一区二区三区下载 | 18禁裸乳无遮挡啪啪无码免费 | 国产亚洲精品成人aa片新蒲金| 欧美饥渴熟妇高潮喷水| 国产亚洲精品第一综合麻豆| 日韩一区二区三区精彩视频| 亚洲AVAV天堂AV在线网阿V| 中文字幕成人精品久久不卡| 国产AV无码专区亚洲AWWW| 厨房喂奶乳hh| 色琪琪丁香婷婷综合久久| 国产av一区二区不卡| 国产伦一区二区三区精品| 亚洲人午夜精品射精日韩| 蜜桃视频在线观看免费网址入口| 亚洲综合一区二区三区在线 | av中文字幕国产精品| 在线观看日本亚洲一区| 国产乱子伦视频在线播放| 熟妇啊轻点灬大JI巴太粗|