diff --git a/显示数组/showstr.cpp b/显示数组/showstr.cpp new file mode 100644 index 0000000..a81d70b --- /dev/null +++ b/显示数组/showstr.cpp @@ -0,0 +1,39 @@ +#include +#include +using namespace std; + +struct Harem +{ + int id; + int age; + string name; +}; + +void show(const Harem &hm) // ⭐ 类型必须写 +{ + cout <<" " <