Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include "Consigliere.h"
- #include <string>
- #include <iostream>
- using namespace std;
- Consigliere::Consigliere(){
- }
- Consigliere::Consigliere(string name, string policeman, string politician){
- this->nameConsigliere = name;
- this->arrayPolicemen[0] = policeman;
- this->arrayPoliticians[0] = politician;
- }
- Consigliere::~Consigliere(){
- }
- void Consigliere::initConsigliere() {
- cout << "Podaj nazwe consigliere : ";
- cin >> this->nameConsigliere;
- cout << "Podaj nazwisko skorumpowanego policjanta : ";
- cin >> this->arrayPolicemen[0];
- cout << "Podaj nazwisko skorumpowanego polityka : ";
- cin >> this->arrayPoliticians[0];
- }
- void Consigliere::show() {
- cout << "Nazwisko Consigliere : " << this->nameConsigliere << endl;
- for (int i = 0; i < 1; i++) {
- cout << "Nazwisko skorumpowanego polityka : " << this->arrayPoliticians[i] << endl;
- cout << "Nazwisko skorumpowanego policjanta : " << this->arrayPolicemen[i] << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement