Guest User

Untitled

a guest
Jan 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. //#include <vector>
  5. #include <fstream>
  6. //#include "Class.h"
  7. using namespace std;
  8. void Load_Books(vector <Book> books_date)
  9. {
  10.  
  11. ifstream plik2("plik.txt");
  12. while (!plik2.eof())
  13. {
  14. int isbn, id;
  15. string publisher, title, author;
  16. plik2 >> isbn >> id >> publisher >> title >> author;
  17. //cout << isbn << endl << id << endl << publisher << endl << title << endl << author;
  18. Book temp(static_cast<int>(isbn), static_cast<int>(id), publisher, title, author);
  19. books_date.push_back(temp);
  20.  
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment