From dfc428266a3e12fd2727f692107ce4d0a56b20fd Mon Sep 17 00:00:00 2001 From: liyuxuan <2928130624@qq.com> Date: Sun, 21 May 2023 16:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c5.md | 4 ++++ c6.md | 4 ++++ c7.md | 7 +++++++ c8.md | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 c5.md create mode 100644 c6.md create mode 100644 c7.md create mode 100644 c8.md diff --git a/c5.md b/c5.md new file mode 100644 index 0000000..e292cc9 --- /dev/null +++ b/c5.md @@ -0,0 +1,4 @@ +int Ascending(float a, float b) +{ + return a < b; // 这样比较决定了按升序排序,如果a b; +} \ No newline at end of file diff --git a/c7.md b/c7.md new file mode 100644 index 0000000..8dbf3db --- /dev/null +++ b/c7.md @@ -0,0 +1,7 @@ +void SwapFloat(float *x, float *y) +{ +float temp; +temp = *x; +*x = *y; +*y = temp; +} \ No newline at end of file diff --git a/c8.md b/c8.md new file mode 100644 index 0000000..68f1b39 --- /dev/null +++ b/c8.md @@ -0,0 +1,7 @@ +void SwapLong(long *x, long *y) +{ +long temp; +temp = *x; +*x = *y; +*y = temp; +} \ No newline at end of file