//不知道你要什么效果,凑合着看吧
#include
#include
using namespace std;
void main()
{
srand(time(NULL));
int p1,p2;
cout<<"玩家一出:"<
{
case 0:
cout<<"剪刀"<
break;
case 1:
cout<<"石头"<
break;
case 2:
cout<<"布"<
break;
}
cout<<"玩家二出:"<
{
case 0:
cout<<"剪刀"<
break;
case 1:
cout<<"石头"<
break;
case 2:
cout<<"布"<
break;
}
if(p1==0&&p2==0)
cout<<"平局"<
cout<<"玩家二赢"<
cout<<"玩家一赢"<
cout<<"平局"<
cout<<"玩家二赢"<
cout<<"玩家一赢"<
cout<<"平局"<
cout<<"玩家二赢"<
cout<<"玩家一赢"<