冒泡排序Practice
#include<stdio.h>
#define TRUE 1
#define FALSE 0
typedef struct{
int key;
int other;
}rectype;
rectype R[1024];/*定义一个记录类型的数组R*/
void BUBBLESORT(rectype R[]){
int i,j,noswap,n;
n=1024;
rectype temp;
for(i=0;i<n-2;i++)
{
noswap=TRUE;
原创
2020-10-16 11:15:17 ·
95 阅读 ·
0 评论