Advertisement
czlowiekzgon

cons cpp

Nov 28th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #include "pch.h"
  2. #include "Consigliere.h"
  3. #include <string>
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. Consigliere::Consigliere(){
  8.  
  9. }
  10.  
  11. Consigliere::Consigliere(string name, string policeman, string politician){
  12. this->nameConsigliere = name;
  13. this->arrayPolicemen[0] = policeman;
  14. this->arrayPoliticians[0] = politician;
  15. }
  16.  
  17. Consigliere::~Consigliere(){
  18. }
  19.  
  20.  
  21. void Consigliere::initConsigliere() {
  22. cout << "Podaj nazwe consigliere : ";
  23. cin >> this->nameConsigliere;
  24. cout << "Podaj nazwisko skorumpowanego policjanta : ";
  25. cin >> this->arrayPolicemen[0];
  26. cout << "Podaj nazwisko skorumpowanego polityka : ";
  27. cin >> this->arrayPoliticians[0];
  28.  
  29.  
  30. }
  31.  
  32. void Consigliere::show() {
  33. cout << "Nazwisko Consigliere : " << this->nameConsigliere << endl;
  34. for (int i = 0; i < 1; i++) {
  35. cout << "Nazwisko skorumpowanego polityka : " << this->arrayPoliticians[i] << endl;
  36. cout << "Nazwisko skorumpowanego policjanta : " << this->arrayPolicemen[i] << endl;
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement