This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

c++.c(17): error C141: syntax error near '}' THIS ERROR SHOWN PLZ HELP ME

#include<AT89X51.h>
void delay(unsigned int);
void main(void)

{ P1_1=0; /* unset pin # 1*/

P1_2=0; /* unset pin # 2*/

/* bring delay*/

delay(300); P1_1=1; /* set pin # 1*/ P1_2=1; /* set pin # 2*/ /*bring delay*/ delay(300)
}

/* define delay function*/
void delay(unsigned int itime)
{ int i,j; for (i=0;i<itime;i++); for (j=0;j<5000;j++);
}

Parents
  • it is sad that what could be said with a few simple sentences ...

    A few sentences??? I could put it into five simple words!!! The first four being "what a load of" and the last one having four letters, starting with cr and ending with a p. Better not though, because it's not politically correct.

Reply
  • it is sad that what could be said with a few simple sentences ...

    A few sentences??? I could put it into five simple words!!! The first four being "what a load of" and the last one having four letters, starting with cr and ending with a p. Better not though, because it's not politically correct.

Children
No data