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

📄 simulation.h

📁 本程序通过在200*100的格子上按照一定的密度随机洒点模拟生命游戏 默认的密度为0.5
💻 H
字号:
// Simulation.h: interface for the Simulation class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIMULATION_H__F8333837_999B_4F04_8FC9_DBC36A956265__INCLUDED_)
#define AFX_SIMULATION_H__F8333837_999B_4F04_8FC9_DBC36A956265__INCLUDED_

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

class Simulation  
{
public:
	Simulation (char* = NULL);
	virtual ~Simulation();
	void Initialize();
public:
	int Depth;
	int Length;
	double Density;
	void RunIt();
	int MyMap[200][100];
	int MyMapb[200][100];
    int x,y;
	long timepast;
};

#endif // !defined(AFX_SIMULATION_H__F8333837_999B_4F04_8FC9_DBC36A956265__INCLUDED_)

⌨️ 快捷键说明

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