(file) Return to acm2.cpp CVS log (file) (dir) Up to [RizwankCVS] / acm

Diff for /acm/acm2.cpp between version 1.2 and 1.4

version 1.2, 2005/02/16 07:17:25 version 1.4, 2005/02/16 07:21:28
Line 399 
Line 399 
         backpack knapsackOne;         backpack knapsackOne;
  
         knapsackOne.initBackpack(25,200); // 5 total items, 17 total weight         knapsackOne.initBackpack(25,200); // 5 total items, 17 total weight
 knapsackOne.packitem(70,70);  knapsackOne.putItem(70,70);
 knapsackOne.packitem(76,76);  knapsackOne.putItem(76,76);
 knapsackOne.packitem(55,55);  knapsackOne.putItem(55,55);
 knapsackOne.packitem(17,17);  knapsackOne.putItem(17,17);
 knapsackOne.packitem(70,70);  knapsackOne.putItem(70,70);
 knapsackOne.packitem(77,77);  knapsackOne.putItem(77,77);
 knapsackOne.packitem(52,52);  knapsackOne.putItem(52,52);
 knapsackOne.packitem(81,81);  knapsackOne.putItem(81,81);
 knapsackOne.packitem(11,11);  knapsackOne.putItem(11,11);
 knapsackOne.packitem(31,31);  knapsackOne.putItem(31,31);
 knapsackOne.packitem(57,57);  knapsackOne.putItem(57,57);
 knapsackOne.packitem(47,47);  knapsackOne.putItem(47,47);
 knapsackOne.packitem(93,93);  knapsackOne.putItem(93,93);
 knapsackOne.packitem(53,53);  knapsackOne.putItem(53,53);
 knapsackOne.packitem(83,83);  knapsackOne.putItem(83,83);
 knapsackOne.packitem(33,33);  knapsackOne.putItem(33,33);
 knapsackOne.packitem(1,1);  knapsackOne.putItem(1,1);
 knapsackOne.packitem(59,59);  knapsackOne.putItem(59,59);
 knapsackOne.packitem(29,29);  knapsackOne.putItem(29,29);
 knapsackOne.packitem(33,33);  knapsackOne.putItem(33,33);
 knapsackOne.packitem(78,78);  knapsackOne.putItem(78,78);
 knapsackOne.packitem(79,79);  knapsackOne.putItem(79,79);
 knapsackOne.packitem(37,37);  knapsackOne.putItem(37,37);
 knapsackOne.packitem(26,26);  knapsackOne.putItem(26,26);
 knapsackOne.packitem(83,83);  knapsackOne.putItem(83,83);
   
   
         knapsackOne.store_item_array();         knapsackOne.store_item_array();
  
  


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

Rizwan Kassim
Powered by
ViewCVS 0.9.2