mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added descriptions before solving problems
This commit is contained in:
@@ -76,7 +76,8 @@ void runSpecific(){
|
|||||||
//Get the problem
|
//Get the problem
|
||||||
Problem* problem = getProblem(problemNumber);
|
Problem* problem = getProblem(problemNumber);
|
||||||
//Run the problem the specific number of times
|
//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){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
@@ -107,7 +108,8 @@ void runAllShort(){
|
|||||||
//Get the problem
|
//Get the problem
|
||||||
Problem* problem = getProblem(problemNumber);
|
Problem* problem = getProblem(problemNumber);
|
||||||
//Run each problem the specified number of times
|
//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){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
@@ -135,7 +137,8 @@ void runAll(){
|
|||||||
//Get the problem
|
//Get the problem
|
||||||
Problem* problem = getProblem(problemNumber);
|
Problem* problem = getProblem(problemNumber);
|
||||||
//Run each problem the specified number of times
|
//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){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user