
Lv.1
学了c++回来了,准备干大作
在 关于神岛图形化编程和人物形象编辑什么时候开发好这件事 中回复
999999999999999999999999999999年13月32日星期八下下午25时61分61秒 ![]()
2022-06-13T13:42:10 点赞:1
在 谁会C++的给我站出来! 中回复
#include<iostream>
#include<conio.h>
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
system("color 0c");
char b,a;
int c=48,d=48,f=48,e,cishu=0,cuo=0,fen;
cout<<" 这是一个打字练习,可以锻炼打字(英文字符和字母练习)"<<endl<<" 打字简介:本练习一共有30道题,会根据你的错误程度进行打分!小提示:注意把中文模式切换英文(shift键切换)"<<endl;
cout<<" 准备好了吗?要开始了!";
system("pause");
Sleep(100);
system("cls");
while(1)
{
if(cishu==30)
{
cout<<" 恭喜你!你成功完成了练习!!"<<endl;
break;
}
system("color 0c");
srand(time(0));
e=rand()%1+3;
if(e==1)
{
srand(time(0));
c=rand()%65+90;
a=c;
}
else if(e==2)
{
srand(time(0));
d=rand()%97+122;
a=d;
}
else
{
srand(time(0));
d=rand()%48+57;
a=d;
}
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" "<<a<<endl;
b=getch();
if(a!=b)
{
cout<<"错了哦!"<<endl;
cuo++;
}
else
cout<<"对了!"<<endl;
cishu++;
cout<<endl;
cout<<endl;
Sleep(100);
system("cls");
}
fen=30-cuo;
system("color 0a");
cout<<"你的分数是:"<<fen<<endl;
if(fen==30)
cout<<"厉害!满分!"<<endl;
else if(fen>25)
cout<<"加油!再努力下就满分了!"<<endl;
else if(fen>=20)
cout<<"加油吧!差点就不到二十了呢!"<<endl;
else
cout<<"不及格哦!请继续努力!"<<endl;
system("pause");
return 0;
}
//作者:小鹿UUyM2022-06-29T19:42:55 点赞:0
在 谁会C++的给我站出来! 中回复
#include<iostream>
#include<conio.h>
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
system("color 0c");
char b,a;
int c=48,d=48,f=48,e,cishu=0,cuo=0,fen;
cout<<" 这是一个打字练习,可以锻炼打字(英文字符和字母练习)"<<endl<<" 打字简介:本练习一共有30道题,会根据你的错误程度进行打分!小提示:注意把中文模式切换英文(shift键切换)"<<endl;
cout<<" 准备好了吗?要开始了!";
system("pause");
Sleep(100);
system("cls");
while(1)
{
if(cishu==30)
{
cout<<" 恭喜你!你成功完成了练习!!"<<endl;
break;
}
system("color 0c");
srand(time(0));
e=rand()%1+3;
if(e==1)
{
srand(time(0));
c=rand()%65+90;
a=c;
}
else if(e==2)
{
srand(time(0));
d=rand()%97+122;
a=d;
}
else
{
srand(time(0));
d=rand()%48+57;
a=d;
}
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" "<<a<<endl;
b=getch();
if(a!=b)
{
cout<<"错了哦!"<<endl;
cuo++;
}
else
cout<<"对了!"<<endl;
cishu++;
cout<<endl;
cout<<endl;
Sleep(100);
system("cls");
}
fen=30-cuo;
system("color 0a");
cout<<"你的分数是:"<<fen<<endl;
if(fen==30)
cout<<"厉害!满分!"<<endl;
else if(fen>25)
cout<<"加油!再努力下就满分了!"<<endl;
else if(fen>=20)
cout<<"加油吧!差点就不到二十了呢!"<<endl;
else
cout<<"不及格哦!请继续努力!"<<endl;
system("pause");
return 0;
}
//作者:小鹿UUyM2022-06-30T18:36:42 点赞:0