Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vypln {
- private:
- int i, hodnota;
- public:
- Vypln(){
- i=-1;
- hodnota = 0;
- }
- Ticket* operator () () {
- i=i+2;
- Ticket* t = new Ticket(10);
- t->cislo = i;
- return t;
- }
- };
- ### Main ..
- Vypln objekt;
- generate(tik.begin(), tik.end(), objekt());
Add Comment
Please, Sign In to add comment