本人初学C++,此文件是控制台实现的生命游戏。希望大家对不对的地方批评指正,多多包容。关于生命游戏:生命游戏(Game of life)为1970年由英国数学家J. H. Conway提出,某细胞的邻居包括上、下、左、右、左上、左下、右上与右下相邻之细胞,游戏规则如下:拥挤死亡:如果细胞的邻居在四个以上,则该细胞在下次状态将死亡。复活:如果某位置原无细胞存活,而该位置的邻居为三个,则该位置将复活一细胞。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001081s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.068569s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001197s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001879s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001485s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.005179s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001230s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.006645s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015801s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001113s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 54887 [ RunTime:0.019490s ]