Home › Forums › C Programming › Linker Errors, i do believe i need help › Re: Re: Linker Errors, i do believe i need help
March 20, 2009 at 4:28 am
#3526
JonathaThurston
Participant
When your using an if/else statement you can’t give a condition to the else instead you should use else if(condition).
1 2 3 4 5 6 7 8 9 10 11 | <br /> if(i != x){<br /> ...<br /> }<br /> else if(i == j){<br /> ...<br /> }<br /> else(){<br /> ...<br /> }<br /> |
Also your calling int count at the start of the function and again at the start of your do/while loop.