simulation.h
来自「本程序通过在200*100的格子上按照一定的密度随机洒点模拟生命游戏 默认」· C头文件 代码 · 共 30 行
H
30 行
// 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 + =
减小字号Ctrl + -
显示快捷键?