the game of life
文件大小: 5102k
源码售价: 10 个金币 积分规则     积分充值
资源说明: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; } }
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。