mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Fixed rerun bug
This commit is contained in:
@@ -265,9 +265,11 @@ void Problem13::solve(){
|
|||||||
//Start the timer
|
//Start the timer
|
||||||
timer.start();
|
timer.start();
|
||||||
|
|
||||||
|
|
||||||
//Get the sum of all the numbers
|
//Get the sum of all the numbers
|
||||||
sum = mee::getSum(nums);
|
sum = mee::getSum(nums);
|
||||||
|
|
||||||
|
|
||||||
//Stop the timer
|
//Stop the timer
|
||||||
timer.stop();
|
timer.stop();
|
||||||
|
|
||||||
@@ -280,6 +282,7 @@ void Problem13::reset(){
|
|||||||
sum = 0;
|
sum = 0;
|
||||||
nums.clear();
|
nums.clear();
|
||||||
reserveVectors();
|
reserveVectors();
|
||||||
|
setNums();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets
|
//Gets
|
||||||
|
|||||||
Reference in New Issue
Block a user