From 9a28969c848ac34cc66d688ec82d5e56b77f2329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=9D=82=E6=98=B4?= Date: Wed, 25 Sep 2024 21:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A5=E6=80=A5=E6=80=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 实验一/test2.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 实验一/test2.cpp diff --git a/实验一/test2.cpp b/实验一/test2.cpp new file mode 100644 index 0000000..644bd89 --- /dev/null +++ b/实验一/test2.cpp @@ -0,0 +1,23 @@ +#include + +using namespace std; + +typedef struct +{ + string id; + string name; + double price; +} book; + +void swap(double &num1, double &num2) +{ + double temp = num1; + num1 = num2; + num2 = temp; +} + +book sort(book &books) +{ + book new_books[100]; + +} \ No newline at end of file