Added descriptions before solving problems

This commit is contained in:
2020-07-08 21:00:24 -04:00
parent f7dc9356cb
commit 89bb42d4d9

View File

@@ -76,7 +76,8 @@ void runSpecific(){
//Get the problem
Problem* problem = getProblem(problemNumber);
//Run the problem the specific number of times
std::cout << "Solving";
std::cout << problemNumber << ". " << problem->getDescription()
<< "\nSolving";
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
//Reset the data so you are actually counting the run time a second time
problem->reset();
@@ -107,7 +108,8 @@ void runAllShort(){
//Get the problem
Problem* problem = getProblem(problemNumber);
//Run each problem the specified number of times
std::cout << "Solving";
std::cout << problemNumber << ". " << problem->getDescription()
<< "\nSolving";
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
//Reset the data so you are actually counting the run time a second time
problem->reset();
@@ -135,7 +137,8 @@ void runAll(){
//Get the problem
Problem* problem = getProblem(problemNumber);
//Run each problem the specified number of times
std::cout << "Solving";
std::cout << problemNumber << ". " << problem->getDescription()
<< "\nSolving";
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
//Reset the data so you are actually counting the run time a second time
problem->reset();