看板
[ java ]
討論串[問題] Selection Sorting的問題
共 15 篇文章
內容預覽:
看這樣子很像是你的Scope沒做好. 你的selectArr確定是一個全區變數嗎?. ※ 引述《sonicno111.bbs@ptt.cc (PP)》之銘言:. > 我貼一下現在的進度. > 只貼了執行SORTING那部份. > public void selectSort(){. > int te
(還有923個字)
內容預覽:
假設這句話代表的意義是selectArr是datamember ,. 請確認在執行這個方法之前,selectArr是已經初始化的.. 如果selectArr不是global變數,那你的這句話就有問題了~. 問題是出在selectArr,所以檢查看看吧. :). --. String temp="re
(還有335個字)
內容預覽:
我貼一下現在的進度. 只貼了執行SORTING那部份. public void selectSort(){. int tempArr[];. int x=0;. int s=0;. tempArr= new int[selectArr.length];. for (x=1;x<selectArr.l
(還有341個字)