首页 | 本学科首页   官方微博 | 高级检索  
     检索      

使用卡诺图化简嵌套IF语句——以4变量卡诺图和VisualBasic为例
引用本文:郑元福.使用卡诺图化简嵌套IF语句——以4变量卡诺图和VisualBasic为例[J].哈尔滨师范大学自然科学学报,2007,23(5):41-46.
作者姓名:郑元福
作者单位:哈尔滨师范大学
摘    要:在程序设计时,多条件的IF语句采用多层嵌套方式会使源程序代码冗长,影响源程序的可读性,如果将嵌套IF语句转换成各条件之间的逻辑运算,可以缩短源程序代码,使源程序更加简洁.多条件嵌套IF语句直接改成各条件之间的逻辑运算比较困难,卡诺图是数字逻辑电路设计中常用的逻辑函数化简工具,在VB程序设计中引入卡诺图工具,讨论使用卡诺图简化嵌套IF语句的方法,说明该方法适用范围和注意事项.

关 键 词:IF语句  嵌套  卡诺图
修稿时间:2007年4月4日

USING KARNAUGH MAP SIMPLIFIED NESTING IF SENTENCE——TAKE EXAMPLE FOR KARNOUGH MAP OF 4 VARIABLES AND VISUAL BASIC
Zheng Yuanfu.USING KARNAUGH MAP SIMPLIFIED NESTING IF SENTENCE——TAKE EXAMPLE FOR KARNOUGH MAP OF 4 VARIABLES AND VISUAL BASIC[J].Natural Science Journal of Harbin Normal University,2007,23(5):41-46.
Authors:Zheng Yuanfu
Institution:Harbin Normal University
Abstract:When designed the program,multi conditions IF sentence often adapt to multi nesting,which made the source-program code tso long that influence the readability of source-program.If IF transfer the nesting IF sentence into logical calculation in each conditions,it can decrease source-program code and make source-program more brief.But,it is very difficult to do that transition.Karnaugh Map often used in number logical circuit program is the logical function simplified appliance.This paper introduces the Karnaugh Map applied into Visual Basic program design,discusses the method of using Karnaugh Map simplified nesting IF sentence,illustrates the method that can be used in what scopes and what things needed to be pay attention to.
Keywords:IF sentence  Nesting  Karnaugh Map
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号