mirror of
https://github.com/This-weiyuqing/DSAndOS.git
synced 2026-10-18 03:03:58 +08:00
update
This commit is contained in:
1 parent
16d694ffe3
commit
35e5484d7c
183 files changed
+362
-7145
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user