C#控制台程序:四种排序方法
1:冒泡排序,沉底
2:冒泡排序,上浮
3:选择排序,升序
4:选择排序,降序
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int[] n = { 15, 25, 36, 31, 12, 41, 89, 78, 55, 62 };
int i = 0, j = 0, t = 0, k = 1, m = 0;
Con
原创
2021-03-31 11:46:53 ·
581 阅读 ·
0 评论