好几个错误,给你参考下
#include<reg52.h>
#define uint unsigned int
sbit LC=P1^0;
void delay(uint c)
{
uint a,b;
for (a=0; a<c; a++)
for (b=0; b<124; b++);
}
void main()
{
LC=0;
delay();
LC=1;
delay();
}