}
MAXSIZE=N; temp=1; if (N>=2) { for (int i=1;i<=N;i++) { temp*=2;//计算N个棋子的时候可能的初始状态总数 } temp--; }
for (inFather=0;inFather<=temp;inFather++)//从到^N-1逐个进行模拟 { Step=0; if (inFather==0||inFather==temp) { Output(inFather); Step++; Output(temp); puts(\棋子全部变成黑色\ } else { Father=inFather; Output(Father);//输出初始状态 Inbreed(&Father,&Mother);//繁殖,即进行模拟 } }
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库棋子颜色问题(4)在线全文阅读。
相关推荐: