czlowiekzgon

Untitled

Nov 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <string>
  4. #include"Assassin.h"
  5.  
  6. using namespace std;
  7.  
  8. Assassin::Assassin() {
  9. cout << "Podaj pseudonim zabojcy : ";
  10. cin >> nickname;
  11. cout << "Podaj nazwe broni jaka sie posluguje : ";
  12. cin >> gun;
  13. }
  14.  
  15. Assassin::~Assassin() {
  16.  
  17. }
  18.  
  19. Assassin::Assassin(string nick, string g) {
  20.  
  21. nickname = nick;
  22. gun = g;
  23.  
  24. }
  25.  
  26.  
  27. void Assassin::init(string nick, string g) {
  28.  
  29. nickname = nick;
  30. gun = g;
  31. }
  32.  
  33. void Assassin::init() {
  34.  
  35. cout << "Podaj pseudonim zabojcy : ";
  36. cin >> nickname;
  37. cout << "Podaj nazwe broni jaka sie posluguje : ";
  38. cin >> gun;
  39. }
  40.  
  41.  
  42.  
  43. void Assassin::show() {
  44. if (this != nullptr) {
  45. cout << "Pseudonim : " << nickname << endl;
  46. cout << "Bron : " << gun << endl;
  47. }
  48.  
  49. }
Add Comment
Please, Sign In to add comment