交换两个字符串

mty.draw
tong tong zhang 2 years ago
parent 00f0504a90
commit 34b942c607

@ -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);
}
Loading…
Cancel
Save