No.104496 作者:sjhwx 邮件:sjhwx@tom.com ID:74342 登陆:1次 文章数:1篇 最后登陆IP:222.191.189.242 最后登陆:2007/4/10 21:32:24 注册:2007/4/10 21:28:05 财富:105 发帖时间:2007/4/10 21:32:24 发贴者IP:222.191.189.242 标题:sjhwx:我的 switch程序运行不正常 求教!!!!!!!!!! 摘要:No.104496我的 switch程序运行不正常 求教!!!!!!!!!! [size=3]我的程序运行不正常,求教!!!!!!!!!! #include <reg51.h> #include "math.h" #include "stdlib.h" #include "intrins.h" #define uchar unsigned char #define uint unsigned int uchar contenty,key_data,key; uchar r_key(uchar contenty); /******************************************** * 读键函数 * 返回键值 key_data *********************************************/ uchar r_key(uchar contenty) { switch(contenty) { case 0 :key = 0 ; key_data=key; key = 1; break; case 1 :key = 0; key_data=key+key; key = 1; break; ......
>>返回讨论的主题
|
老古网执行:16毫秒 最大:5328毫秒 查询6次
|
|