aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
blob: 05ec0333a89ae2cb0827d1980611e5ae7419a0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <cstdio>
// #include "Observer.h"
#include "Net.h"
#include "Gate.h"

int main(int argc, char** argv) {
	// Observer ob();
	Net n;
	Gate *g = new GateAnd;
	g->addInput(&n);
	n.setLevel(HIGH);
	int level = 22;
	level = n.getLevel();
	printf("hello world! %d\n", level);
	return 0;
}