Advertisement
czlowiekzgon

Untitled

Jan 9th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. void Menu::showGangAllData(const Gang *g)const {
  2. if (g == nullptr) {
  3. cout << "Gang nie zostal stworzony" << endl;
  4. return;
  5. }
  6. cout << "Dane gang :" << endl;
  7. cout << *g;
  8. cout << endl;
  9.  
  10. cout << "Dane Boss :" << endl;
  11. if (g->ptrBoss != nullptr) {
  12. cout << *g->ptrBoss;
  13. }
  14. else {
  15. cout << "Gang nie ma Bossa" << endl;
  16. }
  17.  
  18. cout << "Dane Underbossow :" << endl;
  19. if (g->ptrUnderboss != nullptr) {
  20. for (int i = 0; i < g->sizeUnderboss; i++) {
  21. cout << "[" << i << "] Underboss :" << endl;
  22. cout << (*ptrGang)[0];
  23.  
  24. //cout << g->ptrUnderboss[i];
  25. }
  26. }
  27. else {
  28. cout << "Gang nie ma underbossa " << endl;
  29. }
  30.  
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement