This commit is contained in:
weiyuqing committed 2023-07-28 22:53:00 +08:00
1 parent 16d694ffe3
commit 35e5484d7c
183 files changed
+362 -7145

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#include"3.23.h"
Person dancer[MAXQSIZE];
int main() {
int i = 0;
fstream file;
file.open("DancePartner.txt");
if (!file) {
cout << "错误!未找到文件!\n\n" << endl;
exit( ERROR);
}
while (!file.eof()) {
file >> dancer[i].name >> dancer[i].sex;
i++;
}
DancePartner(dancer, i + 1);
return 0;
}