函数
liyuxuan 2 years ago
parent 288c343d27
commit dfc428266a

@ -0,0 +1,4 @@
int Ascending(float a, float b)
{
return a < b; // a<b
}

@ -0,0 +1,4 @@
int Descending(float a, float b)
{
return a > b;
}

@ -0,0 +1,7 @@
void SwapFloat(float *x, float *y)
{
float temp;
temp = *x;
*x = *y;
*y = temp;
}

@ -0,0 +1,7 @@
void SwapLong(long *x, long *y)
{
long temp;
temp = *x;
*x = *y;
*y = temp;
}
Loading…
Cancel
Save