📄 ex5-4.c
字号:
#include<stdio.h>
#include<reg51.h>
struct mepoint {
unsigned char name[11];
unsigned char num, pressure, temperature;
};
struct mepoint po[3]=
{
{ "1stpoint", 0x01, 0x99, 0x64 },
{ "2ndpoint", 0x02, 0x10, 0x20 },
{ "3tdpoint", 0x03, 0x15, 0x18 }
};
void main(void) {
struct mepoint * mp;
printf("No. point pressure temperature \n");
for (mp=po; mp<po+3; mp++)
printf("%bx %s %bx %bx\n",
mp->num,mp->name,mp->pressure,mp->temperature);
while(1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -