From 00b777314764b3b779094727428faca8c4521521 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 15:35:29 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index c5f3961..937a748 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -37,6 +37,10 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::cout << std::endl; do { double cost = 0; + std::cout << "source: "; + for(int i = 0; i < myPerm.size(); i++){ + std::cout << myPerm[i].GetName() << " "; + } //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()];