Advertisement
czlowiekzgon

assasin cpp

Nov 28th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. #include "pch.h"
  3. #include "Assassin.h"
  4. #include <iostream>
  5. #include <string>
  6. using namespace std;
  7. Assassin::Gun::Gun() {
  8.  
  9. }
  10.  
  11. Assassin::Gun::~Gun() {
  12.  
  13. }
  14.  
  15. void Assassin::Gun::initGun() {
  16. cout << "podaj nazwe broni : ";
  17. cin >> this->nameGun;
  18. }
  19. void Assassin::Gun::show() {
  20. cout << "bron : " << this->nameGun << endl;
  21. }
  22.  
  23. Assassin::Assassin(){
  24.  
  25.  
  26. }
  27.  
  28. void Assassin::show() {
  29. cout << "Dane zabojcy :" << endl;
  30. cout << "Zabojca : " << this->nameAssassin << endl;
  31. cout << "Wiek : " << this->ageAssassin << endl;
  32. gun.show();
  33. }
  34.  
  35.  
  36. Assassin::~Assassin(){
  37. }
  38.  
  39. void Assassin::initAssassin() {
  40. cout << "Podaj nazwe zabojcy : ";
  41. cin >> this->nameAssassin;
  42. cout << "Podaj wiek zabojcy : ";
  43. cin >> this->ageAssassin;
  44. gun.initGun();
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement