hanoi(n,A,B,C); for(i = 0; i < n; i++) t *= 2; printf("搬移次數: %d\n",t-1); system(" pause"); return 0; } 演算法參考: 河內塔演算法網址 河內塔規則:
tw.knowledge.yahoo.com