写C语言的一个小程序悬赏30,追加20

来源:百度知道 编辑:UC知道 时间:2024/05/27 10:39:42
打字游戏的!如果正确给你50分

/***************** 一个有趣的打字游戏 ********************************/
/***************** 作者:沉路 ********************************/
/***************** tc2.0 运行成功 ********************************/
#include<stdio.h>
#include<stdlib.h>
main()
{
int i;
int line=0,col=0,num=0;
int score=0,times=1;
char one[26];
char c;

for(i=0,c='a';i<26;i++,c++) /* 把a~z赋给数组 */
{
one[i]=c;
}
center();
printf("press anykey to start");
getch();

while(1)
{ system("cls");
printf("times:%d ",times); /* 打印关数 */
printf(" score: %d",score); /* 打印分数 */
printf(" 1----Pause,0----exit");
printf("\n");
printf("________________________________