逻辑门 [英] Logic gates

查看:73
本文介绍了逻辑门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用AND,OR,NOT和电线在面板上绘制逻辑电路图?

How to draw a logic circuit diagram on a panel using AND,OR,NOT and wires?

推荐答案

以用户身份创建AND,OR和NOT类控制.
创建一条智能线作为用户控件,以便可以绘制自身.
创建一个智能面板,当一端在AND,OR或NOT上的门上时,可以告知电线,然后根据需要将它们绑定在一起.

大量的工作-这不会很简单.

我能给您的最佳建议是:
1)看一下如何用笔和纸完成相同的任务.找出其中涉及的步骤.
2)从小处开始-创建一个节点控件,然后尝试将它们中的两个连接在一起,以便导线可以在它们之间绘制自身.
Create an AND, OR and NOT class as a user control.
Create an intelligent piece of wire as a user control, so that it can draw itself.
Create an intelligent panel that can tell the wire when an end is over a gate on the AND, OR or NOT, and bind them together as needed.

Lots of work - it won''t be simple.

The best suggestions I can give you are:
1) Look at how you would do the same task with a pen and paper. work out what steps are involved.
2) Start small - create a node control and try to join two of them together so that a wire can draw itself between them.


这篇关于逻辑门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆