Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
Commit472d7fe3f346dacb18634f2c0c95ef6ef9d2e9cc (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-28 18:04:20 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-28 18:04:20 +0300
Files200fdd2512f6fe88e9decf09370928153b8ed7a8 /src/Models/Table.cpp
FMI-OOP-P2_Tables-472d7fe3f346dacb18634f2c0c95ef6ef9d2e9cc.tar
FMI-OOP-P2_Tables-472d7fe3f346dacb18634f2c0c95ef6ef9d2e9cc.tar.gz
FMI-OOP-P2_Tables-472d7fe3f346dacb18634f2c0c95ef6ef9d2e9cc.zip
Parent857b5085a9402f2f7c968363b58b8cdbc7697cc7 (diff)
Autocommit at 28.05.2022 @ 18:04
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/Models/Table.cpp6
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 21fb6a3..595bce2 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -1,7 +1,13 @@
#include "Table.h"
+#include <cstring>
Table::Table(unsigned rows, unsigned cols) {
cells = List<List<Cell*>>(rows);
for (unsigned i = 0; i < rows; i++)
cells[i] = List<Cell*>(cols);
}
+
+void Table::putCell(unsigned row, unsigned col, const char* rawValue) {
+ unsigned intParse = atoi(rawValue);
+ unsigned doubleParse = atof(rawValue);
+}