Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef KOCKA_HPP_INCLUDED
- #define KOCKA_HPP_INCLUDED
- #include<cstdlib>
- class Kocka
- {
- private:
- int vrednost;
- public:
- Kocka()
- {
- vrednost=1;
- }
- Kocka(int vr)
- {
- vrednost=vr;
- }
- Kocka(const Kocka& k)
- {
- vrednost=k.vrednost;
- }
- void baci()
- {
- vrednost=rand()%6+1;
- }
- int getVrednost()const
- {
- return vrednost;
- }
- };
- #endif // KOCKA_HPP_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement