登录
首页 » c++ » 生命游戏

生命游戏

于 2023-05-21 发布 文件大小:17.81 MB
0 88
下载积分: 2 下载次数: 1

代码说明:

本人初学C++,此文件是控制台实现的生命游戏。希望大家对不对的地方批评指正,多多包容。关于生命游戏:生命游戏(Game of life)为1970年由英国数学家J. H. Conway提出,某细胞的邻居包括上、下、左、右、左上、左下、右上与右下相邻之细胞,游戏规则如下:拥挤死亡:如果细胞的邻居在四个以上,则该细胞在下次状态将死亡。复活:如果某位置原无细胞存活,而该位置的邻居为三个,则该位置将复活一细胞。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • QT天气查看工具
    基于Baidu云服务的天气软件。
    2022-06-03 03:44:30下载
    积分:1
  • C# 是行提交方式插入、删除、更新数据库记录
    C# 是行提交方式插入、删除、更新数据库记录,本实例小程序主要演示了以行提交方式插入数据库记录、以行提交方式修改数据库记录、以行提交方式删除数据库记录、使用带有列值的Update()方法修改记录、使用带有列值的Delete()方法删除记录、使用带有列值的Insert()方法插入记录,对应的各个功能核心代码如下:   private void button2_Click(object sender, EventArgs e)   {//以行提交方式修改数据库记录(首先以添加新数据源方式新增NorthwindDataSet)    NorthwindDataSet.ShippersRow MyRow;    MyRow = this.northwindDataSet.Shippers.FindByShipperID(1);    MyRow.Phone = "13996060872";    this.shippersTableAdapter.Update(this.northwindDataSet.Shippers);   }      private void button4_Click(object sender, EventArgs e)   {//使用带有列值的Update()方法修改记录    NorthwindDataSetTableAdapters.ShippersTableAdapter MyAdapter =    new MyForm.NorthwindDataSetTableAdapters.ShippersTableAdapter();    MyAdapter.Update("Speedy Express", "13036371686", 1, "Speedy Express", "13996060872");    this.shippersTableAdapter.Fill(this.northwindDataSet.Shippers);   }   private void button3_Click(object sender, EventArgs e)   {//以行提交方式删除数据库记录(首先以添加新数据源方式新增NorthwindDataSet)    Northwi
    2023-02-24 10:00:04下载
    积分:1
  • 脉冲激光测距中高精度时间间隔系统设计_田海军
    脉冲激光测距系统工作原理即单片机控制激光发 射装置发射占空比一定的激光脉冲,其中一小部分能量 到达接收电路,然后光电探测器将微弱的光脉冲信号变 成电脉冲信号并看作Start信号触发时差测量。激光的 大部分能量在空间中传播,遇到目标物后反射传播到 达接收电路,看作Stop信号结束测量,至此完成时差测 量[2]。TDC?GP22芯片记录Start脉冲到Stop脉冲之间的 时差,用于计算目标物到发射端的距离。(The principle of the pulse laser range finding system is that the single-chip microcomputer controlled laser emission device launches a certain laser pulse, in which a small portion of the energy reaches the receiving circuit, and the photodetector turns the weak light pulse signal into the electric pulse signal and is considered as the time difference measurement of the trigger time of the Start signal. Most of the energy of the laser propagates in the space. After the target, the reflection transmission reaches the receiving circuit, which is regarded as the end of the Stop signal and then completes the time difference measurement [2]. The TDC GP22 chip records the time difference between Start pulse and Stop pulse, which is used to calculate the distance between the target and the transmitter.)
    2018-06-04 11:19:16下载
    积分:1
  • c 写的http post
    纯c 写的http post、get 方式都支持 .接口已经封装好了。可以直接使用。有bug可以联系我。
    2022-06-26 03:50:39下载
    积分:1
  • Deconvolution
    运用此程序可以帮您完成信号反褶积的算法,分析问题(Using this program can help you complete the signal deconvolution algorithms, analyze problems)
    2011-06-06 23:32:02下载
    积分:1
  • Chapter33_PWM捕获
    简单的PWM捕获,初学者比较适合。看看就好啦(Simple PWM capture, beginners are more suitable. Just look at it.)
    2020-06-20 16:20:02下载
    积分:1
  • 音频aac解码
    音频aac解码流程源码,采样率44100,16bit,1024frame,64k码流,供aac解码pcm数据的开发者参考,调用ffmpeg解码接口。
    2023-05-03 11:25:03下载
    积分:1
  • Chap5a
    boundary scan tutorial matlab
    2010-12-25 14:00:23下载
    积分:1
  • DS18B20
    STC89C52RC单片机 读取18B20数据并显示在数码管上(18B20 STC89C52RC microcontroller reads the data and displays on the digital)
    2013-07-21 20:56:15下载
    积分:1
  • source
    STM32驱动OCM12864-9液晶,8位数据线。(STM32 drive OCM12864-9 LCD, 8-bit data lines.)
    2021-04-23 19:38:47下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载