diff options
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | src/Models/CellInt.cpp | 6 |
diff --git a/src/Models/CellInt.cpp b/src/Models/CellInt.cpp index 280a3c3..827f346 100644 --- a/src/Models/CellInt.cpp +++ b/src/Models/CellInt.cpp @@ -5,6 +5,12 @@ CellInt::CellInt(int value) { this->value = value; } +CellInt::CellInt(const char* str) { + value = 0; + while (*str != '\0') + value = value * 10 + '0' - *(str++); +} + double CellInt::getNumeralValue() const { return value; } |
