⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win.h

📁 这个主要是我学习数据结构的课程设计的程序
💻 H
字号:
// Win.h: interface for the Win class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WIN_H__DB9CBC4B_6FBB_40BB_8B3F_5683561D7777__INCLUDED_)
#define AFX_WIN_H__DB9CBC4B_6FBB_40BB_8B3F_5683561D7777__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class Win  
{
public:
	int chess[15][15];
	int win(int x, int y);
	void init();
	Win();
	virtual ~Win();
private:
	
};


struct Element
{
	int x;
	int y;
};

struct stracker
{
	int top;
	Element element[255];

	void initData()
	{
		top=0;
		for(int i=0;i<255;i++)
		{
			element[i].x=0;
			element[i].y=0;
		}
	}

	Element push(Element e)
	{
		element[top]=e;
		top++;
		return e;
	}

	Element pop()
	{
		Element e1;
		e1=element[top];
		if(top>0)
			top--;
		return e1;
	}

};

#endif // !defined(AFX_WIN_H__DB9CBC4B_6FBB_40BB_8B3F_5683561D7777__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -