From aabe5f0f3222615bf4a7907051c8b85ac0cb613c Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 19:15:10 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index a85ce6f..f076e04 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -39,8 +39,10 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou double cost = 0; //Add up the cost of the current permutation. for (int i = 1; i < myPerm.size(); i++) { + std::cout << myPerm[i].GetName() << " "; cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; } + std::cout << std::endl << std::endl; //Push permutation cost to the localCostVector. localCostVector.push_back(cost);