the game of life

时间:2018-12-20 14:51:38
【文件属性】:
文件名称:the game of life
文件大小:4.98MB
文件格式:ZIP
更新时间:2018-12-20 14:51:38
C++ the game of life,C++,亲测可以运行。Main.cpp #include "utility.h" #include "life.h" void main() // Program to play Conway's game of Life. /* Pre: The user supplies an initial configuration of living cells. Post: The program prints a sequence of pictures showing the changes in the configuration of living cells according to the rules for the game of Life. Uses: The class Life and its methods initialize(), print(), and update(). The functions instructions(), user_says_yes(). */ { Life configuration; instructions(); configuration.initialize(); // if(!cin)return; configuration.print(); cout << "Continue viewing new generations? " << endl; while (user_says_yes()) { configuration.update(); configuration.print(); cout << "Continue viewing new generations? " << endl; } }
【文件预览】:
LIFEGAMEHHH
----life3.jpg(30KB)
----life2.jpg(39KB)
----life game.doc(187KB)
----life1.jpg(56KB)
----lifegame()
--------ipch()
--------lifegame.sdf(5.33MB)
--------lifegame.suo(18KB)
--------Debug()
--------lifegame.sln(891B)
--------lifegame()

网友评论