?
#include<bits/stdc++.h>
using namespace std;
int main()
{
srand(time(0));
char a=rand()%26+'A',b;
cout<<"Please quess a letter:";
while(cin>>b)
{
if(a==b)
{
cout<<"You're right!"<<endl;
return main();
}
if(a<b)
cout<<"It's too big.Please guess again:";
if(a>b)
cout<<"It's too small.Please guess again:";
}
return 0;
}
?

就是這么簡單!
Please一鍵三連😁😁😁
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/385410.html
標籤:其他
