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