本代码用到了easyx图形库,下面是贴图,注意和代码放一个文件夹里哦:
0.jpg
1.jpg
2.jpg
(就是空白)
3.jpg
4.jpg
(本图片均可在网上找到)
代码:
#include <iostream>
#include <conio.h>
#include <graphics.h>
#include <time.h>
using namespace std;
IMAGE h[5];
HWND hwnd = GetHWnd();
int smz=5,sum = 0, e[5] = {
0,1,2,3,4 };
int x, y, a[100][100] = {
{
1,1,1,1,1,1,1,1,1,1,1,1},
{
1,7,7,7,7,7,7,7,7,7,7,1},
{
1,7,7,7,7,7,7,7,7,7,7,1},
{
1,7,7,7,2,7,7,7,7,7,7,1},
{
1,7,7,7,7,7,7,7,7,7,7,1},
{
1,7,7,7,7,7,</