c语言菜单设计作业,C语言菜单设计(C language menu design).doc

本文介绍了一个基于C语言实现的菜单系统设计,该系统通过定义多个常量字符数组来存储不同层级的菜单项内容,并使用结构体数组组织这些菜单项及其对应的操作函数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

C语言菜单设计(C language menu design)

C language menu design

Const unsigned char menu0_1 [] FLASH = {" 1. Automatic operation ";

Const unsigned char menu0_2 [] FLASH = {" 2. Manual operation ";

Const unsigned char menu0_3 [] FLASH = {" 3. System Settings"

Const unsigned char menu1 [] FLASH = {" 1. Password Settings"

Const unsigned char menu2 [] FLASH = {2.

Const unsigned char menu3 [] FLASH = {3.

Const unsigned char menu4 [] FLASH = {" 4.

Const unsigned char menu5 [] FLASH = {" 5.

Const unsigned char menu6 [] FLASH = {" 1.

Const unsigned char menu7 [] FLASH = {" 2. Automatic password setting"

Const unsigned char menu8 [] FLASH = {" 3. Manual password Settings"

Const unsigned char menu9 [] FLASH = {" 1. Increase parking number ";

Const unsigned char menu10 [] FLASH = {" 2. Number of set number "};

Const unsigned char menu11 [] FLASH = {" 1.

Const unsigned char menu12 [] FLASH = {" 2.

Const unsigned char menu13 [] FLASH = {" 3. Manually delete the card "};

Const unsigned char menu14 [] FLASH = {" 4 statistics card number "};

Const unsigned char menu15 [] FLASH = {" 6.

# define MAX_KEYTABSTRUCT_NUM 18

# define MENU_AUTOMIMA 1

# define MENU_SHOUMIMA 2

# define MENU_SYSTEMMIMA 3

# define MENU_MIMA 4

# define MENU_MIMA_SITONG 5

# define MENU_MIMA_ZHIDONG 6

# define MENU_MIMA_SHOUDONG 7

# define MENU_CHEWEI 8

# define MENU_CHEWEI_ADD 9

# define MENU_CHEWEI_CHAKAN 10

# define MENU_PLCSEL 11

# define MENU_KAHAO 12

# define MENU_KAHAO_ADD 13

# define MENU_KAHAO_GANYINDELL 14

# define MENU_KAHAO_SHOUDONGDELL 15

# define MENU_KAHAO_CHAKAN 16

# define MENU_ZHANHAO 17

# define MENU_GONUM 18

Typedef struct

{

Uchar MenuID; / / this menu status index number

Uchar ParMenuID; / / parent menu status index number

Const uchar * MenuName; / / menu text content

Void CurrentOperate (*) (void); / / the function of this menu

} KeyTabStruct;

/ / menu table,

FLASH = const KeyTabStruct KeyTab [MAX_KEYTABSTRUCT_NUM]

{

/ / menu ID menu ID menu menu function function

/ / MenuID, ParMenuID, MenuName, CurF

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值