#include#include#include#include#include#includeint main(){ int i=0,b,a,j,ch,d=0,q=0,w=1; char c=0; printf("\n请按任意键开始游戏!\n\n");system("pause");system("cls");printf("start ");printf("1...");Sleep(500);printf(" 2...");Sleep(500);printf(" 3...");Sleep(1000);printf(" go!");Sleep(500);while(w<10){ while(d<100 system="" cls="" 100="" i="0;" printf="" d="" w="" printf="" n="" printf="" score:="" d="" n="" d="" srand="" unsigned="" time="" null="" b="rand()%26+97;" q="q+1;" if="" q="">10){ //下落次数超过10次,即自动判定为输 q=0; printf("\nYou are lose!!!\n\n"); system("pause"); //exit(0); break;} while(i<16){ //控制下落的行数 for(j=1;j
14){d=d-10; system("cls");break;}i++;} } printf("score:%d",d); w++; d=0; q=0;} printf("\n\ncongratulation!!! You are a winner!!!\n\n"); }
打字游戏c语言
最新推荐文章于 2024-07-16 08:58:40 发布