最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

陰間東西

2020-09-22 17:52 作者:destroygunner117  | 我要投稿

#include<iostream>

#include<iomanip>

#include<stdlib.h>

#include<time.h>

#include<conio.h>

using namespace std;

int main()

{

int choice;

int i=0;

double count=0.0;

double right=0.0;?

double accuracy=0.0;

char x;

char a[33]={'a','s','d','f','g','h','j','k','l',';','"','q','w','e','r','t','y','u','i','o','p','[',']','z','x','c','v','b','n','m',',','.'};

while(1)

{

cout<<"莫名其妙的打字游戲"<<endl<<"========================================================"<<endl<<"按任意鍵繼續(xù)"<<endl;

x=getch();??

while(1)

{

system("cls");?

cout<<"選擇難度"<<endl<<"========================================================"<<endl<<"1.基礎(chǔ)"<<endl<<"2.一般"<<endl<<"3.進(jìn)階"<<endl<<"4.退出"<<endl;

? ? ? ? cin>>choice;?

switch(choice)

{

? ? case 1:

? ? while(count!=50)

? ? {

? ? system("cls");?

? ? cout<<"正確率:"<<accuracy<<"%"<<endl<<"進(jìn)度:"<<count*2<<"%"<<endl<<"========================================================"<<endl;

? ? srand(time(0));

? ? i=rand()%(10)+0;

? ? cout<<a[i]<<endl;

? ? x=getch();

? ? if(x==a[i])

? ? {

? ? cout<<"正確"<<endl;

? ? right+=1;

}

else

{

cout<<"錯誤"<<endl;

}

count++;

? ? accuracy=(right/count)*100;

}

system("cls");

cout<<"恭喜,訓(xùn)練結(jié)束!"<<endl;

cout<<"您的正確率為:"<<accuracy<<"%"<<endl<<"還請再接再厲!"<<endl;

cout<<"按任意鍵繼續(xù)"<<endl;

x=getch();?

? ? break;

? ? case 2:

? ? while(count!=50)

? ? {

? ? system("cls");?

? ? cout<<"正確率:"<<accuracy<<"%"<<endl<<"進(jìn)度:"<<count*2<<"%"<<endl<<"========================================================"<<endl;

? ? srand(time(0));

? ? i=rand()%(22)+0;

? ? cout<<a[i]<<endl;

? ? x=getch();?

? ? if(x==a[i])

? ? {?

? ? cout<<"正確"<<endl;

? ? right++;

}

else

{

cout<<"錯誤"<<endl;

}

count++;

? ? accuracy=(right/count)*100;

}

system("cls");

cout<<"恭喜,訓(xùn)練結(jié)束!"<<endl;

cout<<"您的正確率為:"<<accuracy<<"%"<<endl<<"還請再接再厲!"<<endl;

cout<<"按任意鍵繼續(xù)"<<endl;

x=getch();

? ? break;

? ? case 3:

? ? while(count!=50)

? ? {

? ? system("cls");?

? ? cout<<"正確率:"<<accuracy<<"%"<<endl<<"進(jìn)度:"<<count*2<<"%"<<endl<<"========================================================"<<endl;

? ? srand(time(0));

? ? i=rand()%(32)+0;

? ? cout<<a[i]<<endl;

? ? x=getch();?

? ? if(x==a[i])

? ? {?

? ? cout<<"正確"<<endl;

? ? right++;

}

else

{

cout<<"錯誤"<<endl;

}

count++;

? ? ? ? accuracy=(right/count)*100;

}

system("cls");

cout<<"恭喜,訓(xùn)練結(jié)束!"<<endl;

cout<<"您的正確率為:"<<accuracy<<"%"<<endl<<"還請再接再厲!"<<endl;

cout<<"按任意鍵繼續(xù)"<<endl;

x=getch();

? ? break;

? ? case 4:

? ? system("cls");?

? ? cout<<"確定退出嗎?"<<endl<<"1.是"<<"? ? ? ? ? ? ? "<<"2.否"<<endl;

cin>>choice;

? ? if(choice==1)

? ? {

? ? system("cls");

? ? return 0;

}

else

{

? ? break;

}

}

}?

}

return 0;

}?


陰間東西的評論 (共 條)

分享到微博請遵守國家法律
丁青县| 浏阳市| 万年县| 泗阳县| 丰台区| 通渭县| 大姚县| 图们市| 平泉县| 阿拉善右旗| 赤峰市| 沁源县| 隆安县| 屏南县| 乌拉特后旗| 霍山县| 隆林| 岳普湖县| 屯门区| 萨迦县| 游戏| 安西县| 离岛区| 怀仁县| 房山区| 新巴尔虎左旗| 株洲市| 四会市| 油尖旺区| 庆阳市| 同德县| 临武县| 基隆市| 皮山县| 上林县| 乌鲁木齐市| 临沧市| 南昌市| 新巴尔虎右旗| 浙江省| 万荣县|