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