mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Changed exception to Unsolved to fit with naming convention
This commit is contained in:
@@ -188,7 +188,7 @@ void Problem11::reset(){
|
||||
std::string Problem11::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
std::stringstream results;
|
||||
results << "The greatest product of 4 number in a line is " << mee::getProduct(greatestProduct)
|
||||
@@ -200,7 +200,7 @@ std::string Problem11::getString() const{
|
||||
std::vector<int> Problem11::getNumbers() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return greatestProduct;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ std::vector<int> Problem11::getNumbers() const{
|
||||
int Problem11::getProduct() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return mee::getProduct(greatestProduct);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user