mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-07 01:23:57 -05:00
Changed exception to Unsolved to fit with naming convention
This commit is contained in:
@@ -86,7 +86,7 @@ void Problem5::reset(){
|
||||
std::string Problem5::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
std::stringstream results;
|
||||
results << "The smallest positive number evenly divisible by all numbers 1-20 is " << smallestNum;
|
||||
@@ -97,7 +97,7 @@ std::string Problem5::getString() const{
|
||||
int Problem5::getNumber() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return smallestNum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user