Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include "bookpile.h"
- using namespace std;
- void PrintBook (Book b);
- int main ()
- {
- struct Book b;
- PrintBook(b);
- return 0;
- };
- void PrintBook (Book b)
- {
- b.title = "Harry Potter";
- b.author = "J.K. Rowling";
- cout << "\"" << b.title << "\" by " << b.author << endl;
- };
Advertisement
Add Comment
Please, Sign In to add comment