Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- //#include <vector>
- #include <fstream>
- //#include "Class.h"
- using namespace std;
- void Load_Books(vector <Book> books_date)
- {
- ifstream plik2("plik.txt");
- while (!plik2.eof())
- {
- int isbn, id;
- string publisher, title, author;
- plik2 >> isbn >> id >> publisher >> title >> author;
- //cout << isbn << endl << id << endl << publisher << endl << title << endl << author;
- Book temp(static_cast<int>(isbn), static_cast<int>(id), publisher, title, author);
- books_date.push_back(temp);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment