From cbd3a32f28852c9f429d097ed4cdc0e8dc76b64c Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 23:26:04 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 8a2d716..bef1865 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -46,8 +46,9 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::size_t cost = 0; //Add up the cost of the current permutation. // std::cout <<"Rank: " << rank << " Current perm: "; + std::cout << "Rank: "<< rank; for (int i = 0; i < myPerm.size(); i++) { - std::cout << "Rank: "<< rank << " i: " << i; + std::cout << " i: " << i; cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; } std::cout << std::endl << std::endl;