#include<stdio.h>
#include<time.h>
char *kw[]={"Q W E R T Y U I O P [ ]","A S D F G H J K L ; '","Z X C V B N M , . / "};
long AllCounter=0,RightCounter=0,WrongCounter=0;
// 来自公众号:c语言与cpp编程
main()
{
int i,j;
int fun_Esc();
clrscr();
gotoxy(18,1);
printf("%s\n",kw[0]);
gotoxy(20,3);
printf("%s\n",kw[1]);
gotoxy(22,5);
printf("%s\n",kw[2]);
gotoxy(11,25);
for(i=0;i<60;i++)
{
printf("=");
}
gotoxy(1,1);
printf("AllCh: %ld\nRight: %ld\nWrong: %ld",AllCounter,RightCounter,WrongCounter);
gotoxy(50,1);
printf("Press Esc to exit");
gotoxy(50,2);
printf("Enter to pause");
gotoxy(26,12);
printf("* * * * * * * * * * * * * * ");
gotoxy(26,13);
printf("* Press any key to start! *");
gotoxy(26,14);
printf("* * * * * * * * * * * * * * ");
gotoxy(51,13);
if(getch()=
c语言打字游戏代码
最新推荐文章于 2022-02-03 16:31:57 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)