vj1415 生命游戏

Vj1415 生命游戏

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //Ò»´Î¸üÐÂÿ¸öʱ¼äµÄ״̬ / //±ÉÈ˵ÄÎÊÌâ //û¿´Çå³õʼʱ¼ä //Ö»¿ªÁËÒ»¸öÊý×é²¢ÔÚÄǸöÊý×éÉϸüе±Ç°µÄ״̬ ÕâÑùºóÃæµÄϸ°û¾Í³ÉÁËʹÓÃÇ°Ãæϸ°ûµ±Ç °ÃëµÄ״̬ÁË. .. ° const maxn=100; dx:array[1. .8] of integer=(-1,-1,0,1,1,1,0,-1); dy:array[1. .8] of integer=(0,1,1,1,0,-1,-1,-1); var m,n,time:integer; g,f:array[0. .maxn+1,0. .maxn+1] of boolean; procedure init; var i,j:integer; ch:char; begin readln(m,n,time); for i:=1 to n do begin
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Vj1415 生命游戏

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online