From: Alma Dejus Date: Sat, 28 Oct 2023 14:35:12 +0000 (+0200) Subject: final touchés X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=a3426c5d41ffd6d3762de27a8bd7dc5928328c53;p=TDDC76.git final touchés --- diff --git a/notes.md b/notes.md index 7eb1931..f72f604 100644 --- a/notes.md +++ b/notes.md @@ -18,23 +18,4 @@ # Uppgift 2 - -Diagram finns. https://app.smartdraw.com/editor.aspx?credID=-54147836&depoId=50100329&flags=128#depoId=50103329&credID=-54147836, forssennils2@gmail.com -frÃ¥ga om resultatnod /lövnoder/lövklasser. Behövs alla 9? - - - -class Equation { - string result_var - expression (operator eller operand nod) - - calculate() -> expression.get_value() - store_result -> skapar en operand_nod i programminne som heter "area" med givet värde -} - -struct/class variabel { - string namn; - operand-nod värde; -} - -sin(4) +Diagram finns i repot. \ No newline at end of file diff --git a/src/expression.h b/src/expression.h index 4505b7a..5e81398 100644 --- a/src/expression.h +++ b/src/expression.h @@ -3,9 +3,10 @@ #include #include -#include //Behövs? -#include //Behövs? +#include +#include #include +#include #include "postfix.h" #include "token.h" diff --git a/src/operators.h b/src/operators.h index fb7f929..bfe5bb6 100644 --- a/src/operators.h +++ b/src/operators.h @@ -5,7 +5,6 @@ #include #include #include -#include #include "node.h"