@ -0,0 +1,5 @@
// 5使数据按升序排序
int Ascending(float a, float b)
{
return a < b; // 这样比较决定了按升序排序,如果a<b,则交换
}
@ -0,0 +1,8 @@
// 9交换两个字符串
void SwapChar(char x[], char y[])
char temp[MAX_LEN];
strcpy(temp, x);
strcpy(x, y);
strcpy(y, temp);