Advertisement
Misipuk

BUp

Oct 25th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. //    cout << "<< Date example >>" << endl;
  2.     Date d;
  3. //    d.printDate();
  4. //    cout << endl;
  5. //    cout << "<< Artist example >>" << endl;
  6.     Artist* a = new Artist("Vasya", "Pupkin");
  7. //    a->printInfo();
  8. //    cout << endl;
  9. //    cout << "<< Scene example >>" << endl;
  10.     Scene sc1(stishok, a, "Yeah1", 1);
  11.     sc1.printInfo();
  12. //    cout << endl;
  13.     a->setName("Vasiok");
  14. //    sc1.printInfo();
  15. //    cout << endl;
  16.     Scene sc2(proza, a, "Yeah2", 2);
  17.     Scene sc3(stishok, a, "Yeah3", 3);
  18.     Scene sc4(sc3);
  19.     sc1.printInfo();
  20.     Scene scs[3] = {sc1,sc2,sc3};
  21.     cout << endl;
  22.     cout << "<< Concert example >>" << endl;
  23.     Concert* c = new Concert("Slava", d, scs, 3);
  24.     c->printInfo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement