需要输入E=R,P,S来表示石头剪刀布,小写也可以 如果输入的不是这6个默认输入石头 多谢大神 下面是例子
Sample I/O Session #1
Enter R(ock), P(aper), or S(cissors)> x
You played rock.
The computer played scissors.
--------------------------------
Sample I/O Session #2
Enter R(ock), P(aper), or S(cissors)> p
You played paper.
The computer played scissors.
--------------------------------
Sample I/O Session #3
Enter R(ock), P(aper), or S(cissors)> R
You played rock.
The computer played rock.
已经解决啦,谢谢