Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include "Dealer.h"
- #include <iostream>
- #include <string>
- using namespace std;
- Dealer::Drug::Drug() {
- }
- Dealer::Drug::~Drug() {
- }
- void Dealer::Drug::initDrug() {
- cout << "Podaj nazwe towaru : ";
- cin >> this->nameDrug;
- cout << "Podaj cene towaru : ";
- cin >> this->priceDrug;
- }
- void Dealer::Drug::show() {
- cout << "Nazwa towaru : " << this->nameDrug << endl;
- cout << "Cena towaru : " << this->priceDrug << endl;
- }
- Dealer::Dealer(){
- }
- Dealer::~Dealer(){
- }
- void Dealer::initDealer() {
- cout << "Podaj imie dealera : ";
- cin >> this->nameDealer;
- cout << "Podaj region pracy dealera : ";
- cin >> this->region;
- drug.initDrug();
- }
- void Dealer::show() {
- cout << "Dane : " << endl;
- cout << "Nazwa dealera : " << this->nameDealer << endl;
- cout << "Region pracy dealera" << this->region << endl;
- drug.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement