pull/6/head
Tingyu Meng 2 years ago
parent 06ce9ea4a7
commit 54c1b38d1d

16
8.md

@ -0,0 +1,16 @@
// 8交换两个长整型数据
void SwapLong(long *x, long *y)
{
long temp;
temp = *x;
*x = *y;
*y = temp;
}
// 交换两个字符串
void SwapChar(char x[], char y[])
{
char temp[MAX_LEN];
strcpy(temp, x);
strcpy(x, y);
strcpy(y, temp);
}
Loading…
Cancel
Save