看板 NTUBA95study 關於我們 聯絡資訊
=抱歉喔我把上面的文章全刪了= //initialize search algorithm (set default algorithm to BubbleSort) algo = new BubbleSortAlgorithm(); algo.setParent(this); 這部分不用動 那是一開始的設定 JComboBox sort_choice = new JComboBox(new Object[] { "BubbleSort", "BidirBubbleSort", "QSort" }); 這裡把他改成 JComboBox sort_choice = new JComboBox(new Object[] { "BubbleSort", "SelectionSort", "QSort","InsertionSort" }); 這是用來創造新物件的 然後....只有把需要的4個sort放在同個檔案... 就可以跑了........他幾乎全寫好了...根本不用改........ -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 61.59.156.119