Jun 23, 2015 #1 R 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 i have attached a screen shot of the problem
Jun 23, 2015 #2 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 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) { }
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) { }
Jun 23, 2015 #3 H horace1 Advanced Member level 5 Joined Nov 18, 2008 Messages 2,118 Helped 596 Reputation 1,188 Reaction score 571 Trophy points 1,393 Location Norwich, UK Activity points 13,063 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
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