voidBubbleSort(unsignedint*pArray,unsignedchararr_len){unsignedinttemp;unsignedchari,j;for(i=0;iarr_
#includeAT89X51.H>unsignedchari=0,j=0;voidmain(){TMOD=0X01;TH0=0X4c;TL0=0X00;TR0=1;ET0=1;EA=1;P0_
仿真结果如下:includereg51h>sbitSI=P1^4;sbitLED0=P3^0;voiddelay(){unsignedchari,j;for(i=0;i100;i++)for(j
includereg51h>sbitp37=P3^7;voiddelay1();voiddelay();voidmain(){unsignedchari=0;unsignedchars[]={0