Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 16 / LogicExpressions / Source.cpp
diff options
context:
space:
mode:
Commit8cf1283a4ffb9fe1901c29c087fa376de82726af (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-02-19 23:30:52 +0200
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-02-19 23:30:52 +0200
Filesabdfe6bf526100dcce87a88563100e02adf7605e /Sem. 16/LogicExpressions/Source.cpp
Object-oriented_programming_FMI-8cf1283a4ffb9fe1901c29c087fa376de82726af.tar
Object-oriented_programming_FMI-8cf1283a4ffb9fe1901c29c087fa376de82726af.tar.gz
Object-oriented_programming_FMI-8cf1283a4ffb9fe1901c29c087fa376de82726af.zip
Parentd73a7ec225516657dec74472a0491330e9999217 (diff)
clean up
1 files changed, 0 insertions, 15 deletions
-rw-r--r--Sem. 16/LogicExpressions/Source.cpp15
diff --git a/Sem. 16/LogicExpressions/Source.cpp b/Sem. 16/LogicExpressions/Source.cpp
deleted file mode 100644
index af86b62..0000000
--- a/Sem. 16/LogicExpressions/Source.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "LogicExpressions/LogicExpr.h"
-
-using namespace LogicExpressions;
-
-// or |, and ^, negation !, implies >, iff -
-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' }) << endl;
-} \ No newline at end of file