Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] please help me from correcting this error that i am facing in mikroC image attached

Status
Not open for further replies.

Ralph Marime

Newbie level 3
Joined
May 30, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Zimbabwe
Activity points
28
qqq.PNG i have attached a screen shot of the problem
 

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,528
Helped
540
Reputation
1,078
Reaction score
524
Trophy points
1,393
Activity points
0
You cannot have a empty while() loop. You need a condition for it to run like if you want the loop to run always then you have to use
Code:
while(1)

If you want to the loop to run based on some condition then you have to put the condition like

Code:
while(condition == true) {

}

eg:

Code:
while(i < 5) {

}
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
Re: plz help to rectify the error

you have an incomplete while(1) statement in line 61
it needs some condition, e.g.
Code:
  while(condition)
     {}
while condition is true (non zero) the statements {} will be executed
the while() terminates when condition is false
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top