6.3w+
社区成员
while(a=display())
{cin>>b;
while(b!=a)
{if(b>a)
{cout < <"too high try again:";
cin>>b;}
if(b <a)
{cout < <"too low try again:";
cin>>b;}
}
cout < <"Excellent!you guess the number" < <endl;
cout < <"would you like to play again(y or n)?";
cin>>x;
if(x==1)
continue;
else
break;
}