Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #include "functii.hpp"
  2. #include<string>
  3. #include<cstdlib>
  4. #include<iostream>
  5. class alimentatie
  6. { public:
  7. static std:: string CARNIVORA="CARNIVORA"; // 100 % carne
  8. static std:: string IERIVORA="IERIVORA"; // 100 % plante
  9. static std:: string OMNIVORA="OMNIVORA"; // 50 % carne, 50 % plante
  10. };
  11. Animal::getAlimentatie(){
  12. return mAlimentatie;
  13.  
  14. }
  15. Animal::getKgMancareZilnica()
  16. {return mKgMancareZilnica;}
  17. Animal::Animal(std::string Nume, int Varsta, std::string Alimentatie, double KgMancareZilnica)
  18. {mNume=Nume;
  19. mVarsta=Varsta;
  20. mAlimentatie=Alimentatie;
  21. mKgMancareZilnica=KgMancareZilnica;
  22. }
  23. Animal::toString()
  24. { printf("%s Varsta %d ani Alimentatie %s Kg mancare zilnica: %d,specie:%s",mVarsta,mAlimentatie,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement