Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit1da2355d59383939e49db2ac12de6097b7372bdb (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 10:24:31 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 10:24:31 +0300
Files98f590ff76434a8f0275e11d77a7348c69dee403 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-1da2355d59383939e49db2ac12de6097b7372bdb.tar
FMI-OOP-P2_Tables-1da2355d59383939e49db2ac12de6097b7372bdb.tar.gz
FMI-OOP-P2_Tables-1da2355d59383939e49db2ac12de6097b7372bdb.zip
Parent6aa0aed3d8f81cd923080ed7428d344e115c47ea (diff)
Autocommit at 29.05.2022 @ 10:24
1 files changed, 3 insertions, 2 deletions
-rw-r--r--src/Models/CellFormula.cpp5
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 5f9913b..caa1f5d 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -1,8 +1,9 @@
#include "CellFormula.h"
#include "CellDouble.h"
#include <cstring>
-
+#include <iostream>
double pow(double x, unsigned y) {
+ std::cout << x << " " << y << std::endl;
if (y == 0) return 1;
for (unsigned i = 1; i < y; i++)
@@ -47,7 +48,7 @@ double CellFormula::getNumeralValue() {
String CellFormula::getValueForPrint() {
for (unsigned i = 0; i < formula.get_count(); i++)
- std::cout << "[" << formula[i].left->getNumeralValue() << " " << -formula[i].right << std::endl;
+ std::cout << "[" << formula[i].left->getNumeralValue() << " " << formula[i].right << std::endl;
return String() += calculate();
}