What is wrong with this code? I cannot figure out why it says it expects an expression. This is not from a Big Nerd Ranch book but I do own one so that I would ask here. It is from C Programming: Absolute Beginners Guide. The code will run if you remove lines 27-30.
Thanks,
Stefan
I figured it out. I was missing a closing } in the expression above the error. This is a question for another place probably, but is there a book to help understand xCode’s error messages better? I feel like half my struggles is not knowing how to interpret the error codes. Thanks,
Stefan
hello stefan your error code its else of end ( statements).
`
if(condition){
statements
}else if (condition) {
statements
}else{
statements
}
`
if(condition){
statements
}else if (condition) {
statements
}else if (condition) {
statements
}else{
statements
}
thank you