You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
373 B

#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();
}