📄 main.c
字号:
#include <reg51.h>
typedef unsigned char BYTE;
#define SIZE 10
bit FLAG = 0;
BYTE ARRAY[SIZE] _at_ 0x50;
main()
{
BYTE temp;
BYTE temp2;
do
{
BYTE data *point=ARRAY;
BYTE num=SIZE-1;
FLAG=0;
do
{
temp=*point++;
if(temp>*point)
{
FLAG=1;
temp2=*(point);
*(point)=*(point-1);
*(point-1)=temp2;
}
}while(--num);
}while(FLAG);
while(1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -