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

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

version 1.3, 2005/02/16 07:19:57 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.putItem(70,70);
 knapsackOne.putitem(70,70);  knapsackOne.putItem(76,76);
 knapsackOne.putitem(76,76);  knapsackOne.putItem(55,55);
 knapsackOne.putitem(55,55);  knapsackOne.putItem(17,17);
 knapsackOne.putitem(17,17);  knapsackOne.putItem(70,70);
 knapsackOne.putitem(70,70);  knapsackOne.putItem(77,77);
 knapsackOne.putitem(77,77);  knapsackOne.putItem(52,52);
 knapsackOne.putitem(52,52);  knapsackOne.putItem(81,81);
 knapsackOne.putitem(81,81);  knapsackOne.putItem(11,11);
 knapsackOne.putitem(11,11);  knapsackOne.putItem(31,31);
 knapsackOne.putitem(31,31);  knapsackOne.putItem(57,57);
 knapsackOne.putitem(57,57);  knapsackOne.putItem(47,47);
 knapsackOne.putitem(47,47);  knapsackOne.putItem(93,93);
 knapsackOne.putitem(93,93);  knapsackOne.putItem(53,53);
 knapsackOne.putitem(53,53);  knapsackOne.putItem(83,83);
 knapsackOne.putitem(83,83);  knapsackOne.putItem(33,33);
 knapsackOne.putitem(33,33);  knapsackOne.putItem(1,1);
 knapsackOne.putitem(1,1);  knapsackOne.putItem(59,59);
 knapsackOne.putitem(59,59);  knapsackOne.putItem(29,29);
 knapsackOne.putitem(29,29);  knapsackOne.putItem(33,33);
 knapsackOne.putitem(33,33);  knapsackOne.putItem(78,78);
 knapsackOne.putitem(78,78);  knapsackOne.putItem(79,79);
 knapsackOne.putitem(79,79);  knapsackOne.putItem(37,37);
 knapsackOne.putitem(37,37);  knapsackOne.putItem(26,26);
 knapsackOne.putitem(26,26);  knapsackOne.putItem(83,83);
 knapsackOne.putitem(83,83);  
  
  
         knapsackOne.store_item_array();         knapsackOne.store_item_array();


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

Rizwan Kassim
Powered by
ViewCVS 0.9.2