From 17f341078e364a7a86ed03eb8908f89456970a5b Mon Sep 17 00:00:00 2001 From: xuzilin <2849252603@qq.com> Date: Sat, 15 Apr 2023 16:01:05 +0800 Subject: [PATCH] =?UTF-8?q?XZL=5F=E4=BA=A4=E6=8D=A2=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dc3621..ecbd711 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,10 @@ void SwapLong(long *x,long *y) ``` void SwapChar(char x[],chary[]) { - + char temp[MAX_LEN]; + strcpy(temp, x); + strcpy(x, y); + strcpy(y, temp); } ``` -- 2.34.1