标题:
程序报错了不知道问题出在哪,搜索也试过了但还是得不到解决的方案,请大家帮忙看看
[打印本页]
作者:
3142505784
时间:
2023-10-18 00:08
标题:
程序报错了不知道问题出在哪,搜索也试过了但还是得不到解决的方案,请大家帮忙看看
#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit K1=P1^4;
sbit K2=P1^5;
sbit BEEP=P3^7;
void delayB(unsigned char x)
{
unsigned char i;
while(x--)
{
for(i=0;i<13;i++);
}
}
main()
{
P3=0xff;
BEEP=1;
while(1)
{
if(K1==0)
{
while(K1==0);
while(1)
{
BEEP=~BEEP;
delayB(10);
if(K2==0)break;
}
}
if(K2==0)
{
while(K2==0);
BEEP=1;
}
}
}
作者:
dj3365191
时间:
2023-10-18 11:45
你都不告诉大家报的什么错,别人怎么帮你?
作者:
a185980800
时间:
2023-10-18 11:47
void main()
作者:
chxelc
时间:
2023-10-18 14:24
具体报错的内容是什么?
作者:
hcfat51h
时间:
2023-10-18 18:00
看错了,这排版看花了眼
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1