diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Field.cpp | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,4 @@ trolltron #*# -*~
\ No newline at end of file +*~ +*.o
\ No newline at end of file @@ -1,5 +1,12 @@ #include "Field.h"
+class out_of_bounds: public std::exception {
+ virtual const char* what() const throw()
+ {
+ return "index out of bounds";
+ }
+} out_of_bounds;
+
Field::Field(uint width, uint height): m_width(width), m_height(height)
{
|