Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 16
diff options
context:
space:
mode:
Commit9a86536fb579b244b29aa03fbefcce54746546dc (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2021-06-12 19:02:26 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2021-06-12 19:02:26 +0300
Filescf5bce7cce7c692b111ac441e688f43b658f5bd3 /Sem. 16
Object-oriented_programming_FMI-9a86536fb579b244b29aa03fbefcce54746546dc.tar
Object-oriented_programming_FMI-9a86536fb579b244b29aa03fbefcce54746546dc.tar.gz
Object-oriented_programming_FMI-9a86536fb579b244b29aa03fbefcce54746546dc.zip
Parent9603d0847a01c555c2c9286294b3ccdea3e38be8 (diff)
fixes
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Sem. 16/LogicExpressions/Source.cpp6
diff --git a/Sem. 16/LogicExpressions/Source.cpp b/Sem. 16/LogicExpressions/Source.cpp
index 2b810b8..af86b62 100644
--- a/Sem. 16/LogicExpressions/Source.cpp
+++ b/Sem. 16/LogicExpressions/Source.cpp
@@ -2,14 +2,14 @@
using namespace LogicExpressions;
-
+// or |, and ^, negation !, implies >, iff -
int main()
{
- LogicExpr* expr = new Operation(new Var('p'), '|', new Negation(new Var('p'))); // p & !p
+ 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' });
+ cout << " " << isContradiction(expr2, { 'p', 'q' }) << endl;
} \ No newline at end of file