![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
递归
文章平均质量分 77
陈润润
大学想成为学霸的学渣
展开
-
河内塔总结
首先关于这个问题网上有两种代码,答案都相同 第一种 #include #include using namespace std; int towers(int size,char f,char t,char s){ //这里f是startTower,t是spareTower,s是endTower static int count=0; if (size原创 2015-11-23 09:31:53 · 570 阅读 · 0 评论 -
河内塔问题
首先关于这个问题网上有两种代码,答案都相同 第一种 #include #include using namespace std; int towers(int size,char f,char t,char s){ //这里f是startTower,t是spareTower,s是endTower static int count=0; if (size原创 2015-11-23 09:09:37 · 868 阅读 · 0 评论