Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "RandomHelper.h"
- class Item
- {
- public:
- Item();
- Item(int _value, int _weight);
- ~Item();
- int GetCriticalWeight();
- void SetCriticalWeight(int _cw);
- int GetValue() { return value; }
- int GetWeight() { return weight; }
- private:
- int value;
- int weight;
- static int criticalWeight;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement