Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Menu::showGangAllData(const Gang *g)const {
- if (g == nullptr) {
- cout << "Gang nie zostal stworzony" << endl;
- return;
- }
- cout << "Dane gang :" << endl;
- cout << *g;
- cout << endl;
- cout << "Dane Boss :" << endl;
- if (g->ptrBoss != nullptr) {
- cout << *g->ptrBoss;
- }
- else {
- cout << "Gang nie ma Bossa" << endl;
- }
- cout << "Dane Underbossow :" << endl;
- if (g->ptrUnderboss != nullptr) {
- for (int i = 0; i < g->sizeUnderboss; i++) {
- cout << "[" << i << "] Underboss :" << endl;
- cout << (*ptrGang)[0];
- //cout << g->ptrUnderboss[i];
- }
- }
- else {
- cout << "Gang nie ma underbossa " << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement