检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《东南大学学报(自然科学版)》2007年第A01期66-70,共5页Journal of Southeast University:Natural Science Edition
摘 要:介绍了一种在C语言环境下,基于单片机的多级菜单实现方法.该方法从菜单的功能结构出发,在程序设计中做了几点改进.首先对菜单数据项和功能函数各自进行独立设计,通过在数据结构中增加按键有效标志、字符串指针、存储器地址以及与复用相关的元素,实现了两者源代码空间的有效分离,从而大大提高了程序的可维护性;其次引入菜单项复用的思想,简化了程序结构.该设计的多级菜单在自动售货机的服务模式的实际应用表明,此改进方法使菜单设计变得更为简单方便,软件通用性更高,维护更容易.A new method of designing multilevel menus applied in single-chip micro computer (SCM) systems by C language is introduced. Taking function structure of menu as a starting point, the method made several improvements in software design. Firstly, menu data items and menu function were designed separately. Eefficient breakaway between their codes space was implemented by increasing key-pressed sign, string pointer, memory address and elements correlative with reuse, and thus the maintainability of software was enhanced greatly; Secondly, the introduction of menu data items' reuse made the software structure simple. A practical application of the designed menu to service mode of the vending machine indicates that the design of multilevel menus by this method is much simpler and easier, with higher interconvertibility and maintainability.
分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.80