排序方法(数组)

222 阅读1分钟

冒泡排序

源代码如下:

冒泡.png 运行结果:

结果1.png

插入法排序

源代码如下:

插入.png 运行结果:

结果1.png

选择法排序

源代码如下:

选择.png 运行结果:

结果2.png