Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "functii.hpp"
- #include<string>
- #include<cstdlib>
- #include<iostream>
- class alimentatie
- { public:
- static std:: string CARNIVORA="CARNIVORA"; // 100 % carne
- static std:: string IERIVORA="IERIVORA"; // 100 % plante
- static std:: string OMNIVORA="OMNIVORA"; // 50 % carne, 50 % plante
- };
- Animal::getAlimentatie(){
- return mAlimentatie;
- }
- Animal::getKgMancareZilnica()
- {return mKgMancareZilnica;}
- Animal::Animal(std::string Nume, int Varsta, std::string Alimentatie, double KgMancareZilnica)
- {mNume=Nume;
- mVarsta=Varsta;
- mAlimentatie=Alimentatie;
- mKgMancareZilnica=KgMancareZilnica;
- }
- Animal::toString()
- { 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