1. 首页
  2. 信息化
  3. IT管理
  4. 冒泡法求最大值.C

冒泡法求最大值.C

上传者: 2018-12-25 02:27:11上传 C文件 935B 热度 43次
搜集的一种简单的排序方法,部分代码:#include #define N 10 void input(int arr[], int n); /*函数声明*/ void sort(int *ptr, int n); void output(int arr[], int n); void main() { int a[N], *p; input(a,N); p=a; sort(p,N); output(p,N); }
用户评论