We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i am facing error C141: syntax error near '}'
my program is given below:
#include<reg51.h> void main ( ) { int x; while (1) { P1 = 0x00 ; for (x=0 ; x<=5000 ; x++) P1 = 0xFF ; for (x=0 ; x<=5000 ; x++) } }
any one can help me how to solve it
Not very nice but you really think it's hard to read? It's virtually a one liner. and so what.
There are CLEAR instructions as to how to post code above the "Enter Message Details Below" box and FOLLOWING INSTRUCTIONS would make the difference between (in this case somewhat) hard to read and easy to read.
Erik
See the picture: www.danlhenry.com/.../keil_code.png