Re: 程式設計assignment JAVA No.1
=抱歉喔我把上面的文章全刪了=
//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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 11 之 12 篇):