Updated to better match what order the other

languages are doing things in
This commit is contained in:
2020-08-24 15:33:59 -04:00
parent d5595a66c7
commit e4a3f442e4

View File

@@ -253,6 +253,7 @@ void Problem13::reserveVectors(){
//Constructor //Constructor
Problem13::Problem13() : Problem("Work out the first ten digits of the sum of the one-hundred 50-digit numbers"), sum(0){ Problem13::Problem13() : Problem("Work out the first ten digits of the sum of the one-hundred 50-digit numbers"), sum(0){
reserveVectors(); reserveVectors();
setNums();
sum = 0; sum = 0;
} }
@@ -266,9 +267,6 @@ void Problem13::solve(){
//Start the timer //Start the timer
timer.start(); timer.start();
//Setup the array
setNums();
//Get the sum of all the numbers //Get the sum of all the numbers
sum = mee::getSum(nums); sum = mee::getSum(nums);