diff options
| Commit | 450a93877be73a7ef526362d1284ecf58c25418e (patch) | |
|---|---|---|
| Author | 2022-06-13 21:22:48 +0300 | |
| Committer | 2022-06-13 21:22:48 +0300 | |
| Files | 4d15a0c858b310d51cf86c9fbd1959cfdf254a7e /src | |
| FMI-OOP-P2_Tables-450a93877be73a7ef526362d1284ecf58c25418e.tar FMI-OOP-P2_Tables-450a93877be73a7ef526362d1284ecf58c25418e.tar.gz FMI-OOP-P2_Tables-450a93877be73a7ef526362d1284ecf58c25418e.zip | ||
| Parent | bc9995425163016291fad811ab3644860114739b (diff) | |
Autocommit at 13.06.2022 @ 21:22
1 files changed, 9 insertions, 1 deletions
| -rw-r--r-- | src/Models/Table.cpp | 10 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index e108c5d..68908fd 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -79,10 +79,18 @@ void Table::readFromFile(std::ifstream& inFile) { if (inFile.peek() == '.') { buffer.add(inFile.get()); D(inFile, buffer); + W(inFile); + + if (inFile.peek() != ',') throwException(inFile, row); + cells[row].add((Cell*)new CellDouble(buffer.raw_data())); } - else + else { + W(inFile); + if (inFile.peek() != ',') throwException(inFile, row); + cells[row].add((Cell*)new CellInt(buffer.raw_data())); + } } } } |
