?? 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 + -