aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d7709e2..05ec033 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,11 +1,14 @@
#include <cstdio>
// #include "Observer.h"
#include "Net.h"
+#include "Gate.h"
int main(int argc, char** argv) {
// Observer ob();
Net n;
- // n.setLevel(HIGH);
+ Gate *g = new GateAnd;
+ g->addInput(&n);
+ n.setLevel(HIGH);
int level = 22;
level = n.getLevel();
printf("hello world! %d\n", level);