Hi guys, thanks for your previous replies to my thread, I now have a system that satisfies my 1st iteration. It does what it is supposed to do, it allows the user to test individual logic gates, through user specified inputs to see what the output will be.
Looking at the code(Please see the attachment) I know that I will be able to tidy it up and make it more elegant. But what I need advice on now is how do I get the system to allow the user to test multiple gates at the same time.
To clarify I want my 2nd iteration to be able to allow the user the select the gate they want, specify how many inputs and then specify the values for those inputs. Then allow the user to select another, or ever how many the user would like, setting up in the same way; inputs and the values for the inputs.
Here lies the problem, I need to specify a run function that can be accessed by the user from the menu, so when they execute it the corresponding switch statement runs the function and the then the output for each of the gates selected will be displayed in the command prompt.
Now I realise that depending on how many gates the user selects may make it hard to keep track of what gate is producing what output, so I need a way of incrementing an ID number fro each gate. I hope that all make sense, any feedback will be great.
Thanks again, and thanks for before.
Archie