I am trying to simulate a digital logic circuit in C++. The components such as inputs, outputs and gates are given by a txt file. Another file gives some patterns of 0s and