From 5d8b8f11b3bf533c918a2b093baf1e4061792031 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 11:16:08 -0600 Subject: [PATCH] Auto Commit --- HW10/ReadFromFile.cpp | 1 - HW10/main.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HW10/ReadFromFile.cpp b/HW10/ReadFromFile.cpp index b137e10..e1296e2 100644 --- a/HW10/ReadFromFile.cpp +++ b/HW10/ReadFromFile.cpp @@ -14,7 +14,6 @@ std::vector ReadFromFile::ReadFile(const std::string& fileName) City city; city.SetCoordinates(x, y, name); cities.push_back(city); - std::cout << "name: " << name << std::endl; name++; } return cities; diff --git a/HW10/main.cpp b/HW10/main.cpp index e033a3e..627119a 100644 --- a/HW10/main.cpp +++ b/HW10/main.cpp @@ -47,6 +47,9 @@ int main(int argc, char* argv[]) costMatrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize); //Make permutations std::cout << "source size from main " << cities.size() << std::endl; + for(int i = 0; i < cities.size(); i++){ + std::cout << cities[i].GetName() << " " << std::endl; + } costs = MakePermutationMatrix::GetLowestCost(cities, rank, size, costMatrix); }