Hello I am new to these forums and have a problem with some code I am writing for class, I have searched around and I cant seem to figure out what is going on. To me my code looks correct and according to some things I have read it looks like everything is in order but I am still getting some errors any help is greatly appreciated thanks
The errors I get are on line 38 I am getting expected primary expression before ; token and 41 I am getting expected ; before { token. I am using devc++ if that helps any. Thanks in advance
Yea my bad I did that already but pasted in the old code. The errors previously reported are the ones without the semicolons, thank you for the reply tho going to edit first post to reflect
It is only the error from the first post on line 41, I managed to get rid of it by switching the last else to and else if, but that doesnt seem right to me although it does compile