标题:
MAIN.C(2): error C129: missing ';' before 'unsigned' 我没有少分号啊
[打印本页]
作者:
ylthpl
时间:
2023-2-4 09:01
标题:
MAIN.C(2): error C129: missing ';' before 'unsigned' 我没有少分号啊
#include "REG52.h"
typeof unsigned char u8;
typeof unsigned int u16;
#define LED_PORT P2
void delay_10us(u16 ten_us)
{
while(ten_us--);
}
void main()
{
u8 i=0;
while (1)
{
for(i=0;i<8;i++)
{
LED_PORT =~(0x01<<i);
delay_10us(50000);
}
}
}
作者:
ylthpl
时间:
2023-2-4 09:02
苦恼了一个晚上
作者:
huashanhui20
时间:
2023-2-4 10:28
typedef
作者:
taotie
时间:
2023-2-4 10:43
typedef
typeof
作者:
ylthpl
时间:
2023-2-4 13:36
taotie 发表于 2023-2-4 10:43
typedef
typeof
听我说谢谢你
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1