CppLogicGateSimulator / main.cpp
main.cpp
Raw
#include <cstdio>
#include <iostream>
#include <string>
#include <fstream>
#include "node.h"
#include "gate.h"
#include "gateAND.h"
#include "gateOR.h"
#include "gateNOT.h"
#include "circuit.h"

using namespace std;

int main()
{
    circuit circ;
    circ.load_circuit_from_file("gateFile.txt");
    circ.load_inputs_from_file("inputFile.txt");

    /*
    node a("a", false);
    node b("b", true);
    node c("c");
    c.showValue();
    gateNOT myGate(&a, &c);
    myGate.showValue();
    myGate.compute();
    myGate.showValue();
    c.showValue();
    */

    return 0;
}