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:
@@ -69,7 +69,7 @@ void Problem24::reset(){
|
||||
std::string Problem24::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
std::stringstream results;
|
||||
//Print the results
|
||||
@@ -81,7 +81,7 @@ std::string Problem24::getString() const{
|
||||
std::vector<std::string> Problem24::getPermutationsList() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return permutations;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ std::vector<std::string> Problem24::getPermutationsList() const{
|
||||
std::string Problem24::getPermutation() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return permutations.at(NEEDED_PERM - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user