Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include "Header.h"
  3. using namespace std;
  4. class Garaz {
  5. public:
  6. static int licznik;
  7. int IID;
  8. int iloscSamochodow;
  9. Samochod *samochody;
  10. void wypisz();
  11. void dodaj(Samochod autko);
  12.  
  13. Garaz() {
  14. licznik++;
  15. iloscSamochodow = 0;
  16. IID = licznik * 100;
  17. }
  18.  
  19. ~Garaz() {
  20. if(licznik >0) licznik--;
  21. }
  22.  
  23. };
  24. int Garaz::licznik = 0;
  25.  
  26. void Garaz::wypisz() {
  27. for (int i = 0; i < iloscSamochodow; i++) {
  28.  
  29. }
  30. }
  31. void Garaz::dodaj(Samochod autko) {
  32.  
  33.  
  34. }pas
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement