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