Advertisement
myname0

практика_лист3_13

Jul 1st, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "Book.h"
  2. #include <list>
  3.  
  4.  
  5. Book:: Book(string book, string name): nameOfBook(book), author(name), ageRestrictions(0);
  6. {
  7. }
  8.  
  9. Book :: void Show(ofstream &out)
  10. {
  11. out << nameOfBook << "/n" << author << endl;
  12. }
  13. Book :: bool search(string inf)
  14. {
  15. if (inf == author)
  16. return true;
  17. else return false;
  18. }
  19. List :: void Erase()
  20. {
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement