mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Updated to better match what order the other
languages are doing things in
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user