Moved Unsolved to it's own file

This commit is contained in:
2020-08-28 14:25:09 -04:00
parent 514afd1bd2
commit a797bb6718
2 changed files with 25 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include <sstream>
#include <string>
#include "Stopwatch.hpp"
#include "Unsolved.hpp"
class Problem{
@@ -34,7 +35,6 @@ protected:
const std::string description; //Holds the description of the problem
mee::Stopwatch timer; //Used to determine your algorithm's run time
bool solved; //Holds true after the problem has been solved
class Unsolved{}; //An exception class thrown if you try to access something before it has been solved
public:
//Constructors
Problem() : solved(false){