1.I designed a simple menu for users.
1.Create a gate(or a port).
2.Connect two gates.
3.Disconnect two gates.
4.Run the program.
5.Display the gate.
6.Clear all connection.
7.Set the port sign.
8.Rename the port name.
9.Quit.
2.Then you need create more gates/ports.
3.Connect them.
4.Set the port sign.
5.Run.
6.Show the result.
test.in 是一个一位全加器.
line 29 第三个数字对应Ai
line 30 第三个数字对应Bi
line 31 第三个数字对应Ci
输出结果的 id 4 output对应 Si
输出结果的 id 5 output对应 Ci+1