求程序,下面是剪刀石头布的程序,谁能帮忙改成能选择三局两胜,五局三胜……的?能成功运行的加分#include#includeusing namespace std;class Play{public:int People;unsigned long Computer;public:Play(){};Play(){};void Se
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/24 19:09:47
求程序,下面是剪刀石头布的程序,谁能帮忙改成能选择三局两胜,五局三胜……的?能成功运行的加分#include#includeusing namespace std;class Play{public:int People;unsigned long Computer;public:Play(){};Play(){};void Se
求程序,下面是剪刀石头布的程序,谁能帮忙改成能选择三局两胜,五局三胜……的?能成功运行的加分
#include
#include
using namespace std;
class Play
{
public:
int People;
unsigned long Computer;
public:
Play(){};
Play(){};
void Set_People(int _p)
{
People=_p;
}
void Set_Computer(unsigned long _C)
{
Computer=_C;
}
int Judge()
{
switch(People)
{
case 0:
cout
求程序,下面是剪刀石头布的程序,谁能帮忙改成能选择三局两胜,五局三胜……的?能成功运行的加分#include#includeusing namespace std;class Play{public:int People;unsigned long Computer;public:Play(){};Play(){};void Se
#include
#include
using namespace std;
class Play
{
public:
int People;
unsigned long Computer;
public:
Play(){};
~Play(){};
void Set_People(int _p)
{
People=_p;
}
void Set_Computer(unsigned long _C)
{
Computer=_C;
}
int Judge()
{
switch(People)
{
case 0:
cout