 |
java 河內塔內含程式碼- Yahoo!奇摩知識+
public class Hanoi {public static void main(String args[]) throws IOException {int n ; ... hanoi.move(n, 'A', 'B', 'C'); } public void move(int n, char a, char b, char c) {if(n
== 1) ... 他裡面沒有迴圈為何能印出這麼多行資料麻煩大大們幫忙解答吧此程式碼 ...
tw.knowledge.yahoo.com |
 |