czlowiekzgon

Untitled

Nov 9th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 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.  
  10. }
  11.  
  12. Assassin::Assassin(string nick, string g) {
  13.  
  14. nickname = nick;
  15. gun = g;
  16.  
  17. }
  18.  
  19.  
  20. void Assassin::init(string nick, string g) {
  21.  
  22. nickname = nick;
  23. gun = g;
  24. }
  25.  
  26. void Assassin::init() {
  27.  
  28. cout << "Podaj pseudonim zabojcy : ";
  29. cin >> nickname;
  30. cout << "Podaj nazwe broni jaka sie posluguje : ";
  31. cin >> gun;
  32. }
  33.  
  34.  
  35.  
  36. void Assassin::show() {
  37. cout << "Pseudonim : " << nickname << endl;
  38. cout << "Bron : " << gun << endl;
  39. }
Add Comment
Please, Sign In to add comment