作为一个单片机自学者,想求大家帮助解答一下,不懂下面这些程序代码的意思.
是一个关于电子秤的程序:
int weight;
uchar num,s=5;
ulong ad_data=0;
ulong cost=0, total = 0;
ulong price=0;
uchar flag_ok=0; //ok键的按键次数
uchar pi=0;
uchar flag_dian=0,dian=1; //小数点的位数,和小数点标志
uchar flag_dian_all=0;
uchar dian_max=1; //最大的点的位数
uchar flag_jian=0;
uchar cha=0, flag_jia=0, flag_jian;
uchar code str0[]={"Weight: g "};
uchar code str1[]={"cost: "};
uchar code str2[]={"Price: "};
uchar code str3[]={"Iotal: "};
uchar code table1[]={"0123456789"};
|