Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #include "iostream"
  2. #include "Swiat.h"
  3. #include "Zwierze.h"
  4. #include "Zmija.h"
  5. #include "Owca.h"
  6. #include "Wilk.h"
  7. #include "Leniwiec.h"
  8. #include "Smok.h"
  9. #include "Trawa.h"
  10. #include "Jagody.h"
  11. #include "Ciern.h"
  12.  
  13. #define MAX 20
  14. using namespace std;
  15.  
  16. int main()
  17. {
  18. Swiat *sw = new Swiat();
  19. Zmija *z = new Zmija(Pozycja(2,5),sw);
  20. Leniwiec *l = new Leniwiec(Pozycja(7,1),sw);
  21. Owca *o = new Owca(Pozycja(11,4),sw);
  22. Smok *s = new Smok(Pozycja(10,4),sw);
  23. sw->dodaj_Organizm(s);
  24. sw->dodaj_Organizm(o);
  25. sw->dodaj_Organizm(z);
  26. sw->dodaj_Organizm(l);
  27. sw->wykonajTure();
  28. sw->imie_nazwisko();
  29. sw->indeks();
  30. sw->rysujSwiat();
  31. char znak;
  32. while( cin >> znak)
  33. {
  34. system("cls");
  35. sw->imie_nazwisko();
  36. sw->indeks();
  37. sw->wykonajTure();
  38. sw->rysujSwiat();
  39. char *a = "KONIEC";
  40. if (strcmp(a, "KONIEC") == 0)
  41. break;
  42. }
  43.  
  44. return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement