#include<bits/stdc++.h>
using namespace std;
string a[6]={"H_llo,I'm Gary.","Th_s is my mom.","_y father is strong.","I don'_ know.","I los_ my notebook."};
int main(){
system("color f4");
srand(time(0));
int t,b[6]={14,13,20,7,14};
t=rand()%5+1;
cout<<a[t];
for(int i=1;i<=b[t];i++){
printf("\b");
}
char l,answer[6]={'e','i','M','t','t'};
cin>>l;
if(l==answer[t]) cout<<"对!";
else cout<<"错!";
return 0;
}
不知对不对。
#1
I'm ten years old.