Advertisement
Guest User

Untitled

a guest
Aug 13th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include<iostream>
  2. #include<string>
  3. #include<vector>
  4. #include<algorithm>
  5. #include<cmath>
  6. using namespace std;
  7. inline void keep_window_open() { char ch; cin >> ch; }
  8.  
  9. class Date {
  10.     int y, m, d;
  11.  
  12. public:
  13.     Date(int d, int m, int y);
  14. };
  15.  
  16. class Book {
  17.     string title;
  18.     string author;
  19.     string isbn;
  20.     Date date;
  21.  
  22. public:
  23.     Book(string t, string a, string id, Date d);
  24. };
  25.  
  26. int main() {
  27.     Book Charlie("charlie", "gates", "333H", Date(1, 2, 3));
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement