Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include "Item.h"
  2.  
  3. int Item::criticalWeight;
  4.  
  5. Item::Item()
  6. {
  7. }
  8.  
  9. Item::Item(int _value, int _weight)
  10. {
  11. value = _value;
  12. weight = _weight;
  13. }
  14.  
  15.  
  16. Item::~Item()
  17. {
  18. }
  19.  
  20. int Item::GetCriticalWeight()
  21. {
  22. return criticalWeight;
  23. }
  24.  
  25. void Item::SetCriticalWeight(int _cw)
  26. {
  27. criticalWeight = _cw;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement