c51单片机程序实例答:include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00}; //0到9uchar num,cnt,disn;uchar keyval,disk;uchar led[]={1,2,3,4};void dealdat(uchar a){led[0]=0;led[1]=0;led[2]=0;led[3]=0;led[a]=...
C51单片机“冒泡法”排序实例答:C51单片机“冒泡法”排序实例 程序如下 #include<reg51.h> #include<stdio.h> void main() { unsigned char xdata a[ ]= {0x3f,0x44,0x32,0x54,0x66,0x56,0x99,0x88,0x77,0x11,0x34}; unsigned char i,j,t; printf("the unsorted numbers:\n"); for(i=0;... 展开 bao0604 | 浏览2818 ...