话不多说直接上代码!
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
using namespace std;
char ch;
char b[5];
int c[5];
void menu()
{
system("color F0");
cout<<setw(80)<<"读心术 2.0"<<endl;
cout<<setw(80)<<"A开始游戏"<<endl<<endl;
cout<<setw(82)<<"B秘密(不要看)"<<endl<<endl;
cout<<setw(80)<<"C退出游戏"<<endl;
do {
ch=getch();
} while(ch<'A'||ch>'C');
}
void canditon()
{
system("cls");
system("color 30");
string a[5];
int i,j;
a[0]="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15";
a[1]="1,3,5,7,9,11,13,15";
a[2]="2,3,6,7,10,11,14,15";
a[3]="4,5,6,7,12,13,14,15";
a[4]="8,9,10,11,12,13,14,15";
for(i=1;