From d0ef713976a249e699cd7c0ba4e489118f7a3e0d Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 15:36:21 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 937a748..12880d1 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -37,10 +37,12 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::cout << std::endl; do { double cost = 0; - std::cout << "source: "; + std::cout << "myPerm: "; for(int i = 0; i < myPerm.size(); i++){ std::cout << myPerm[i].GetName() << " "; } + std::cout << std::endl; + //Add up the cost of the current permutation. for (int i = 1; i < myPerm.size(); i++) { cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()];