我想从大到小排序死活不行,后来看源码发现是代码的问题,把加入成员 (返回数组, 排序变量 .原数据)改成加入成员 (返回数组, 排序变量 [数据成员数量 - i + 1].原数据)就解决了
变量名 | 类 型 | 静态 | 数组 | 备 注 | total | 整数型 | | | a | 整数型 | | | res | 文本型 | | | arr | 文本型 | | 0 |
total = 200 res = “40|1,24|2,13|3,80|4,39|5,69|6,14|7,41|8,52|9,76|10,77|11,26|12,92|13,95|14,73|15,39|16,36|17,70|18,90|19,31|20,31|21,48|22,30|23,68|24,122|25,109|26,109|27,125|28,61|29,42|30,107|31,35|32,47|33,39|34,129|35,64|36,116|37,109|38,138|39,122|40,117|41,60|42,135|43,88|44,108|45,95|46,73|47,74|48,64|49,149|50,123|51,77|52,147|53,58|54,123|55,133|56,142|57,62|58,137|59,114|60,85|61,157|62,125|63,148|64,99|65,112|66,156|67,155|68,152|69,143|70,143|71,97|72,105|73,100|74,87|75,158|76,132|77,102|78,152|79,91|80,117|81,110|82,139|83,146|84,160|85,138|86,177|87,153|88,157|89,147|90,178|91,183|92,112|93,148|94,166|95,150|96,172|97,175|98,163|99,175|100,169|101,120|102,139|103,160|104,140|105,151|106,120|107,132|108,132|109,139|110,205|111,168|112,123|113,164|114,170|115,196|116,171|117,145|118,159|119,184|120,126|121,147|122,201|123,152|124,175|125,224|126,225|127,197|128,177|129,179|130,145|131,162|132,216|133,231|134,152|135,165|136,178|137,162|138,182|139,227|140,228|141,168|142,236|143,179|144,210|145,208|146,177|147,241|148,205|149,202|150,181|151,178|152,210|153,206|154,232|155,161|156,217|157,200|158,251|159,217|160,200|161,205|162,258|163,234|164,189|165,237|166,249|167,266|168,251|169,172|170,249|171,265|172,196|173,258|174,230|175,266|176,182|177,202|178,279|179,243|180,199|181,210|182,267|183,259|184,273|185,225|186,197|187,227|188,276|189,233|190,230|191,235|192,223|193,220|194,255|195,229|196,240|197,277|198,211|199,249|200,” . . 文本_分割文本排序_快速 (res, “,”, “|”, 1, 2, 假, arr ) 调试输出 (arr )
|