#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
char a[50][50]={"------",
"| |",
"| |",
"| |",
"------"};
int c,n=10,sudu;
bool k[200]={0,1,0,0};
void cls()
{
system ("cls");
}
void xy(int y,int x)
{
COORD coord;
coord.X=x;
coord.Y=y;
HANDLE a=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(a,coord);
}
void out(int x,int y,bool t)
{
if (t)
for (int i=0;i<5;i++,x++)
{
xy(x,y);
for (int j=0;j<6;j++)
cout <<a[i][j];
}
else
for (int i=0;i<5;i++,x++)
{
xy(x,y);
for (int j=0;j<6;j++)
cout <<" ";
}
}
void yuan()
{
for (int i=1;i<=n;i++)
out (8,12*i-3,1);
}
void dong()
{
int a,b,i,t;
a=rand()%n+1;
do
C++ 转杯子猜球位置 游戏
最新推荐文章于 2025-06-07 15:27:39 发布