dgibson.hin

来自「1984-1993模糊 C 源代码竞赛.zip 非常的好,不过这是DOS格式,」· HIN 代码 · 共 61 行

HIN
61
字号
Best Abuse of the C Preprocessor: <dgibson@cs.uct.ac.za> David Gibson	David Gibson	University of Cape Town	1 Sweet Valley Road	Bergvliet	7945	South AfricaJudges' comments:    To use:	sh ./dgibson.sh [datafile]    where:	datafile	initial pattern (default: dgibson.data1)        We have provided the shell script 'dgibson.sh' to make it easier    to run this entry.  Run this shell script several times to    see what happens.    There are a number of data files available:	dgibson.data1	dgibson.data2	dgibson.data3	dgibson.data4	dgibson.data5    For dgibson.data5 you will need a large screen, lots of virtual    memory and lots of time!    Good luck trying to use a debugger on this entry!  Life is not    always pretty.Selected notes from the author:    This program plays the Game of Life.    Life is a cellular automaton invented by J. H. Conway, in which each of    a rectangular grid of cells can be alive or dead, and cells with more    than 3 or less than 2 (out of 8) live neighbours die, and empty cells    with exactly 3 neighbours give birth.    Some notes: the "STAT n" information does not have to be present in the    initial configuration;  the initial configuration should not have live    cells around the edges; the grid should be a perfect rectangle.    Further features: the current generation number is preserved, and the    grid automatically resizes itself as the object gets too big or too    small.	When writing this program, my goal was to make each cell in the life	grid expand to the code which calculates the fate of that cell.  In	addition, the resulting program is a single expression, which makes it	necessary to recurse on main in two "directions" simultaneously.

⌨️ 快捷键说明

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