parent
37b4a91b62
commit
af6e1c1f42
@ -0,0 +1,20 @@
|
||||
#include<iostream>
|
||||
#include<fstream>
|
||||
#include"library.h"
|
||||
#include"book.h"
|
||||
using std::cout;
|
||||
using std::cin;
|
||||
using std::endl;
|
||||
|
||||
Book booklist[50];
|
||||
int num{};
|
||||
void wxy::daoru()
|
||||
{
|
||||
std::ifstream ifile("booklist.txt");
|
||||
ifile >> num;
|
||||
for (int i {}; i < num; i++)
|
||||
{
|
||||
ifile >> booklist[i].Name >> booklist[i].Auther >> booklist[i].amount;
|
||||
}
|
||||
ifile.close();
|
||||
}
|
Loading…
Reference in new issue