Perdes

bookpile.cpp

Jan 26th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include "bookpile.h"
  5.  
  6.  
  7. using namespace std;
  8.  
  9. void PrintBook (Book b);
  10.  
  11. int main ()
  12. {
  13. struct Book b;
  14. PrintBook(b);
  15.  
  16. return 0;
  17. };
  18.  
  19.  
  20.  
  21. void PrintBook (Book b)
  22. {
  23. b.title = "Harry Potter";
  24. b.author = "J.K. Rowling";
  25. cout << "\"" << b.title << "\" by " << b.author << endl;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment