刚刚坐着没事干,就用swift语言写了写冒泡排序,还望高手指点、拍砖!哈哈!废话不多说,上代码!1importCocoa23vararray=[123,234,12,346,4,75,67,234,23,1233,3,5,986,98,567,345,234,234]45println("排序前的值:")67foriteminarray8{9varii=item10println(ii)11}1213forvari=0;i<array.count-1;++i{14forvarj=0...
查看全文