Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 16 / Source.cpp
diff options
context:
space:
mode:
1 files changed, 0 insertions, 15 deletions
-rw-r--r--Sem. 16/Source.cpp15
diff --git a/Sem. 16/Source.cpp b/Sem. 16/Source.cpp
deleted file mode 100644
index 2b810b8..0000000
--- a/Sem. 16/Source.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "LogicExpressions/LogicExpr.h"
-
-using namespace LogicExpressions;
-
-
-int main()
-{
- LogicExpr* expr = new Operation(new Var('p'), '|', new Negation(new Var('p'))); // p & !p
- expr->print();
- cout << " " << isTautology(expr, { 'p' }) << endl;
-
- LogicExpr* expr2 = new Operation(new Var('q'),'^',new Operation(new Var('p'), '^', new Negation(new Var('p')))); // q ^ (p ^ !p)
- expr2->print();
- cout << " " << isContradiction(expr2, { 'p', 'q' });
-} \ No newline at end of file