Added descriptions to problems that didn't have any

This commit is contained in:
2020-06-06 18:17:13 -04:00
parent a841942741
commit 0f6f4fe0be
4 changed files with 18 additions and 18 deletions

View File

@@ -30,6 +30,10 @@
#include "../Headers/Problem30.hpp"
Problem30::Problem30() : Problem("Find the sum of all the numbers that can be written as a sum of the fifth powers of their digits"){
}
//Returns a vector with the indivitual digits of the number passed into it
std::vector<uint64_t> Problem30::getDigits(uint64_t num){
std::vector<uint64_t> listOfDigits; //This vector holds the individual digits of num
@@ -43,10 +47,6 @@ std::vector<uint64_t> Problem30::getDigits(uint64_t num){
return listOfDigits;
}
Problem30::Problem30(){
}
void Problem30::solve(){
//If the problem has already been solved do nothing and end the function
if(solved){