diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |